getfile.cmd:
@echo offgetfile.ftp:
if exist dlfilespec del /f /q dlfilespec
ftp -s:getfile.ftp -v
if exist destfilespec_%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%.zip ~SPLIT~
del /f /q destfilespec_%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%.zip
ren dlfilespec ~SPLIT~
destfilespec_%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%.zip
open host
username
password
binary
prompt
mget dlfilespec
ls
close
bye
No comments:
Post a Comment