资源介绍
实现FTP批量上传文件到指定目录功能的bat脚本:
@echo off
@echo delete iplist.txt
@del iplist.txt
@setlocal EnableDelayedExpansion
@echo create upload iplist....
@for /L %%i in (51,1,52) do (
@echo 10.98.21.%%i>>iplist.txt
)
@echo list file name.....
@dir .\uploadfile\* /b>filelist.txt
@echo begin upload .....
@echo begin....>result.txt
@for /f "delims=," %%i in (iplist.txt) do (
@echo open %%i>ftpcmd.txt
@echo test>>ftpcmd.txt
@echo 123456>>ftpcmd.txt
@echo prompt>>ftpcmd.txt
@echo cd /upload/>>ftpcmd.txt
@echo lcd uploadfile>>ftpcmd.txt
@echo mput *>>ftpcmd.txt
@echo bye>>ftpcmd.txt
@echo quit>>ftpcmd.txt
@echo upload ip begin:%%i....
@ftp -s:ftpcmd.txt >>result.txt
@echo upload ip end....
)
@echo all upload end....
@echo end....>>result.txt
pause
- 上一篇: Docker视频教程.txt
- 下一篇: 装逼代码说明.txt