ftp批量上传文件bat

时间:2021-04-23 05:03:31
【文件属性】:

文件名称:ftp批量上传文件bat

文件大小:1KB

文件格式:ZIP

更新时间:2021-04-23 05:03:31

ftp上传bat

实现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


【文件预览】:
ftp_mutiupload_script
----ftp_upload.bat(773B)
----ftp_check.bat(798B)
----uploadfile()

网友评论