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
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.