本帖最后由 CrLf 于 2013-4-2 20:02 编辑
试试这样:- @echo off
- set "ftpUser=ftp"
- set "ftpPass=123456"
- set "ftpPort=235"
- setlocal enabledelayedexpansion
- for /f %%a in (IP.txt) do (
- set ftpFile=!temp!\TempFTP_%%a.txt
- >"!ftpFile!" (
- echo open %%a !ftpPort!
- echo,!ftpUser!
- echo,!ftpPass!
- echo bin
- echo put "111.txt"
- echo put "222.txt"
- echo ^^!
- )
- start ftp -v -i -s:"!ftpFile!"
- )
复制代码
|