Wednesday, September 7, 2011

FTP Command for Transferring File

Sometimes we need to transferring or copying some files that hosted in some ftp server. The following are step by step on how to do:
1. You should make some text file (ie: script.txt). The following is the example for the content of this file:
   
yourUserName
yourPassword
bin
cd /files
get file.zip
bye
Note: for massive transfer file you can use command "mget", then replace the file name with some wildcard character (*).
2. In the command prompt, run the following command: ftp -s:script.txt 111.111.111.111
Note : 111.111.111.111 is the example of your ftp server site.

No comments:

Post a Comment