|
ftp -s xxx.txt可以获取,不过不如wget方便,找一个win版的wget放在windows/或windows/system32下面
然后- cd C:\Program Files\DeskTool\
- set i=0
- :getfile
- wget ftp://192.168.1.253/u/显示公告.exe -o 显示公告.tmp
- set /a i=%i%+1
- if exist 显示公告.tmp goto done
- if %i% geq 5 goto errget
- ping 127.0.0.1 -n 6 >nul
- goto getfile
- :errget
- echo Error: Can not get remote file
- pause
- goto eexit
- :done
- copy 显示公告.tmp 显示公告.exe /y >nul
- :eexit
- set i=
- start 显示公告.exe
复制代码 未经试验,很粗糙,供参考
|
|