Batch file 从FTP命令获取消息
我想知道是否有一种方法可以在ascii文件中批量获取来自FTP函数的消息。 我在.CMD文件中有以下说明: ftp-i-s:mescommandes.txt 在mescommandes.txt中:Batch file 从FTP命令获取消息,batch-file,ftp,Batch File,Ftp,我想知道是否有一种方法可以在ascii文件中批量获取来自FTP函数的消息。 我在.CMD文件中有以下说明: ftp-i-s:mescommandes.txt 在mescommandes.txt中: open "ipserver" "user" "pwd" ascii lcd "working\directory" cd "storage\directory" mput monficA*.txt mput monficB*.txt mput monficC*.txt qui
open "ipserver"
"user"
"pwd"
ascii
lcd "working\directory"
cd "storage\directory"
mput monficA*.txt
mput monficB*.txt
mput monficC*.txt
quit
我想将信息保存在ASCII文件中,如:226传输完成。使用命令
ftp-I-s:mescommandes.txt>out.txt
将ftp的输出发送到file out.txt。您尝试过“ftp-I-s:mescommandes.txt>out.txt”吗?我刚刚尝试过,效果很好!!非常感谢你,伊利亚