登录 注册
当前位置:主页 > 资源下载 > 5 > bat脚本实现ftp批量上传文件

bat脚本实现ftp批量上传文件

  • 更新:2024-10-31 14:33:50
  • 大小:1KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:ZIP

资源介绍

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