To program ftp from a batch file, see http://support.microsoft.com/kb/96269. You need to call ftp like this
ftp -i -s:ftpcommands.txt
where ftpcommands.txt looks something like this:
open ftp.myftpsite.com
username
password
bin
cd out
mget *
del *
bye
For running this every 15 minutes, see other replies (at
or Command Scheduler).
(The -i
parameter is to turn off interactive prompting - the other way to do this is to add a prompt off
command to the commands text file before the mget
. Without this, mget
will stop and ask you to confirm before getting each file. [Thanks to Adriano for pointing this out!])
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…