Re: Problem downloading files from SFTP site with batch job
Thank you. I managed to get it to work
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
^
at the end of some lines.
Unknown command '^'.
The system cannot find the path specified.
'"exit"' is not recognized as an internal or external command,
operable program or batch file.
@echo off
"D:\Utilities\WinSCP\WinSCP.com" ^
/command ^
"open sftp://XXXXXXXXXXX/ -hostkey=""ssh-dss 1024 XXXXXXXXXXXXXXXXXXXXXX"" -privatekey=""D:\XXXXXXXXXXXXXXXXX"" -rawsettings ProxyMethod=2 ProxyHost=""XXXXXXXXXXXXX"" ProxyPort=XXXXXXXX" ^
"lcd D:\Import\"
"cd /ARS" ^
"get -delete ARS_LAST_MT* D:\Import\"
"exit"