0

我想知道是否存在将来自 FTP 函数的消息批量输入 ascii 文件的方法。我在 .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

quit

我想将消息保存在 ASCII 文件中,例如:226 传输完成。

4

1 回答 1

1

使用命令ftp -i -s:mescommandes.txt > out.txt将 ftp 的输出发送到文件 out.txt。

于 2013-10-02T02:38:35.197 回答