如何解决如何同步名称中有空格的远程和本地目录?
我尝试使用 winscp
命令 synchronize
将文件从远程目录下载到本地目录。但是远程目录的全限定名中包含空格。我尝试使用双引号,但它不起作用。
目录名称类似于 /test router logs
。
脚本:
"synchronize local -transfer=automatic -mirror -speed=2250 "E:\test Router Logs" "\test Router Logs" "
日志:
2020-12-22 10:32:53.676 Script: Active session: [1] xxxx/support@xxxx.com@xxxxx.sharefileftp.com
2020-12-22 10:32:53.676 Script: synchronize local -transfer=automatic -mirror -speed=2250 E:\test
2020-12-22 10:32:53.676 Script: Comparing...
. 2020-12-22 10:32:53.676 Collecting synchronization list for local directory 'E:\test' and remote directory '/',mode = Local,params = 0x1002 (NoConfirmation,Mirror),file mask = ''
* 2020-12-22 10:32:53.676 (EOSExtException) Error retrieving file list for "E:\test\*.*".
* 2020-12-22 10:32:53.676 System Error. Code: 3.
* 2020-12-22 10:32:53.676 The system cannot find the path specified
. 2020-12-22 10:32:53.676 Asking user:
. 2020-12-22 10:32:53.676 Error listing directory 'E:\test'. ("Error retrieving file list for ""E:\test\*.*"".","System Error. Code: 3.","The system cannot find the path specified")
2020-12-22 10:32:53.676 Script: Error listing directory 'E:\test'.
2020-12-22 10:32:53.676 Script: Error retrieving file list for "E:\test\*.*".
2020-12-22 10:32:53.676 System Error. Code: 3.
2020-12-22 10:32:53.676 The system cannot find the path specified
2020-12-22 10:32:53.707 Script: Error listing directory 'E:\test'.
2020-12-22 10:32:53.707 Error retrieving file list for "E:\test\*.*".
2020-12-22 10:32:53.707 System Error. Code: 3.
2020-12-22 10:32:53.707 The system cannot find the path specified
. 2020-12-22 10:32:53.707 Script: Failed
. 2020-12-22 10:32:53.707 Script: Exit code: 1
. 2020-12-22 10:32:53.707 Disconnected from server
Tue 12/22/202010:32:54.17
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。