English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

With the command the other guy gave you, how can you detect if the batch script was successful at downloading or not?

Use CURL to do your ftp for you. Get it at http://curl.haxx.se/download/

curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, TFTP, HTTP, HTTPS, TELNET, DICT, FILE and LDAP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.

2006-10-25 15:12:56 · answer #1 · answered by thepinky 3 · 0 0

Hi!

Try using a batch (.bat file):

ftp user.host
"pass"
put path/to/file/file

or get (to download a file)

*Note: the batch file might not be able to execute correctly if the pass string is declared simple. Also, you might not be able to login if the pass is included in brackets. But there might be a workaround... declare the pass as a systesm variable:
set ftppassword pass
and the type set to see the sys vars
ftppass line should show the pass string
in which case:
instead of "pass" in the batch use %pass or %pass%. The last one should work!

Good luck!

2006-10-25 03:35:16 · answer #2 · answered by Robintel 4 · 0 1

fedest.com, questions and answers