- @echo off
- setlocal enabledelayedexpansion
- set ftpUser=ftp
- set ftpPass=123456
- set ftpPort=235
- for /l %%a in (2,1,10) do (
- set ftpFile=%temp%\TempFTP_%%a.txt
-
- >"!ftpFile!" (
- echo open 192.168.1.%%a %ftpPort%
- echo,%ftpUser%
- echo,%ftpPass%
- echo bin
- echo mput 111.txt 222.txt
- echo bye
- )
- start ftp -v -i -s:"!ftpFile!"
- )
复制代码
|