我的脚本:
cd C:\Users\Administrator\Downloads\WinSCP-5.9.2-Portable
winscp.com /command ^
"open ftp://test:[email protected]"
"cd /facommon" ^
"get file.*gz" ^
我想说你缺少一个插入符号^
在这一行的末尾:
"open ftp://test:[email protected]"
您可以验证该方法是否确实适用于此公共 FTP:
cd C:\Users\Administrator\Downloads\WinSCP-5.9.2-Portable
winscp.com /command ^
"open ftp://anonymous:[email protected]/" ^
"cd /pub/test/" ^
"get *.html" ^
"exit"
马丁·普里克利尔(作者为WinSCP)指出了WinSCP在这方面的文档:
- 为什么批处理文件中 WinSCP 命令行上指定的某些脚本命令未执行/失败?
他还补充说,exit
声明应该出现在最后。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)