اگر شما به فرامین ftp آشنا باشید می توانید از طریق خط فرمان سیستم عامل خود به ftp متصل شده و انتقال فایل به سرور را از این طریق انجام دهید .

برای اتصال باید از فرمان ftp استفاده کنید . مثلا برای اتصال به سایت خودمان از فرمان زیر استفاده می کنیم .

ftp ftp.backyou.com

که در مرحله بعد نام کاربری و رمز را پرسیده که وارد می کنیم . نتیجه این کار را ما در DOS Prompt انجام دادیم که در شکل زیر می بینید .

بعنوان مثال می خواهیم در شاخه public_html فایل index.html که در شاخه c:/myfiles هست   را آپلود کنیم و سپس ارتباطمان را با ftp قطع کنیم . فرامین زیر را بترتیب در dos prompt  وارد می کنیم ( ابتدا وارد شاخه myfiles می شویم و سپس به ftp متصل می شویم ) 

c:
cd/myfiles
ftp ftp.backyou.com
user_ftp
password_ftp
cd public_html
send index.html
bye

لیست فرامین ftp در جدول زیر آمده است :

Command  Information
! Using this command you will have the capability of toggling back and forth between the operating system and ftp. Once back in the Operating System generally typing exit will take you back to the FTP command line.
? Access the Help screen.
abor Abort Transfer
append Append text to a local file.
ascii Switch to ASCII transfer mode
bell Turns bell mode on / off.
binary Switches to binary transfer mode.
bye Exits from FTP.
cd Changes directory.
cdup Change to parent directory on remote system
close Exits from FTP.
cwd Change working directory on remote system
dele Delete file on remote system
delete Deletes a file.
debug Sets debugging on / off.
dir Lists files if connected.

dir -C = Will list the files in wide format.
dir -1 = Lists the files in bare format in alphabetic order
dir -r = Lists directory in reverse alphabetic order.
dir -R = Lists all files in current directory and sub directories.
dir -S = Lists files in bare format in alphabetic order.
disconnect Exits from FTP.
get Get file from the computer connected to.
glob Sets globbing on / off.
hash Sets hash mark printing on / off
help Access the Help screen and displays information about command if command typed after help.
lcd Displays local directory or if path typed after lcd will change local directory.
list Send a list of file names in the current directory on the remote system on the data connection.
literal Sends command line
ls Lists files if connected.
mdelete Multiple delete
mdir Lists contents of multiple remote directories
mget Get multiple files
mkd Make directory.
mkdir Make directory.
mls Lists contents of multiple remote directories.
mode Specifies the transfer mode. Available parameters are generally S, B or C.
mput Sent multiple files
nlst Send a full directory listing of the current directory on the remote system on the data connection.
open Opens address.
pass Supplies a user password. 
port Specify the client port number.
prompt Enables/disables prompt.
put Send one file
pwd Print working directory
quit Exits from FTP.
quote Send arbitrary ftp command
recv Receive file
retr Get file from remote system.
remotehelp   Get help from remote server
rename Renames a file
rmdir Removes a directory
send Send single file
status Shows status of currently enabled / disabled options
trace Toggles packet tracing
type Set file transfer type
user Send new user information
verbose Sets verbose on / off.

برای ارسال و دریافت فایل از چه فرمانی باید استفاده کرد ؟

برای دریافت :  get myfile.html

برای ارسال : send myfile.html

توجه نمایید که ارسال و دریافت فایل در مسیری که شما به ftp متصل شدید انجام می گیرد

من می توانم در ftp تعیین کنم که فایلها به کدام شاخه کامپیوتر من ارسال شود ؟

بلی - مثلا در ویندوز ، شما اگرمی خوهید انتقال بین ftp و شاخه ویندوز انجام بگیرد از فرمان LCD  بشکل زیر استفاده می کنید :

 LCD c:\windows

من می توانم چند فایل را با هم دانلود کنم ؟

بلی - شما باید از کاراکترهای wildcard ( در داس کاراکترهای * , ؟ ) و فرمان mget ( مخفف Multiple get files ) استفاده کنید . بعنوان مثال می خواهید کلیه فایلهای موجود در شاخه جاری ftp خود را دانلود کنید از فرمان زیر استفاده می کنید :

mget *.*

هنگام اتصال به ftp خطای شماره 10061 برخورد می کنید ؟

این خطا به معنی رد کردن اتصال شما به ftp می باشد .

برای رفع اشکال به یک سرور ftp دیگر متصل شوید . اگر اتصال شما با موفقیت انجام شد بدین معنی است که دسترسی ندارید و یا اینکه آدرس ftp را اشتباه وارد کردید .

اگر به هیچ ftp یی نمی توانید متصل شوید ، به تنظیمات شبکه شما مربوط است :

تنظیمات شبکه خود را بررسی نمایید که آیا شما دسترسی اتصال به ftp را دارید یا خیر و پورت ftp آیا بسته است یا خیر ؟

امکان دارد در سیستم شما firewall نصب شده که از اتصال به ftp جلوگیری می نماید .

 

آمار سایت
کل بازدید سایت : 142,213
میزان بازدید این صفحه : 1,097
تعداد بازدیدکنندگان : 50,873
تعداد بازدید کنندگان در روز : 67
تعداد بازدیدکنندگان دیروز : 107
حداکثر بازدید کننده درروز : 123
افراد آنلاین : 2
حدکثر افراد آنلاین : 18
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

استفاده از مطالب این سایت با ذکر نام نویسنده و نام وب سایت بلامانع است .

© 2005-2008 YaranTOOS Group :: MashhadHost.com , All Rights Reserved.