We help IT Professionals succeed at work.

Batch Files

aneilg
aneilg asked
on
i am running the following batch file, but it does not seem to work if there are spaces in the folder names.
winscp.com" /command "option batch abort" "option confirm off" "open ?????" "cd/ for_???" "put \\s-prem-001\Data\?? data\?? Extracts\??\Extracts\Footer.txt" "exit"

Open in new window

Comment
Watch Question

Test your restores, not your backups...
Top Expert 2016
Commented:
Take a look at this page, and the /command example.  It appears that you have to quote the file names, and that you surround them with 2 double qoutes.

http://winscp.net/eng/docs/commandline

~bp

Author

Commented:
thanks.

Author

Commented:
thanks