ftp下载批处理(linux和windows)

For linux/unix : create a file named download.sh

////////////////////

ftp -niv <<!
open 219.143.204.38

user username password
binary
cd %ftp_path%
lcd %download_destination_path%

prompt
get %download_filename%

bye

/////////////////////

issue that command in command line : ./download.sh

 

For windows:  create a file named download.conf :

 //////////////////

open 219.143.204.38

username
password
binary
cd %ftp_path%
lcd %download_destination_path%

get %download_filename%
bye

//////////////////////

issue that command in command line : ftp parms -s:download.conf

你可能感兴趣的:(ftp下载批处理(linux和windows))