Error quoting spaces to locate destination filepath WinSCP script issue

前端 未结 1 1197
耶瑟儿~
耶瑟儿~ 2020-12-20 08:16

I\'ve written a basic .bat file script that automates downloading a group of files via WinSCP. I have used this code for performing a similar process which is w

相关标签:
1条回答
  • 2020-12-20 08:52

    Your have to double the double quotes. You are also missing a quote at the end of the get command (note the three consecutive quotes).

    "get ""/*.txt"" ""C:\Users\John Smith\Dropbox\joebloggs\Data\System Data\...\""" ^
    

    (path shortened so that it fits in view)

    See WinSCP documentation on command-line syntax and FAQ Why are some WinSCP scripting commands specified in a batch file not executed/failing?


    You can also have WinSCP GUI generate a SFTP batch file template for you, including correct quotes.

    0 讨论(0)
提交回复
热议问题