Re: WinSCP Command Through BatchScript
@George: This is all discussed above already. There must be no space after
Again, see Why are some WinSCP scripting commands specified in a batch file not executed/failing? (linked two times already above).
^
and the next line must be indented. Also your batch continue
and option confirm on
commands are misplaced and invalid. And your quotes are wrong.
echo on
del ftpcmd.log
winscp.com /log=ftpcmd.log /command ^
"option batch continue" ^
"option confirm on" ^
"open ftps://XXXXXX:XXXXXXX -hostkey=""ssh-rsa 2048 xxxxxxxxxxx...""" ^
"get /TEST_RPT/ c:\test" ^
"exit"
Again, see Why are some WinSCP scripting commands specified in a batch file not executed/failing? (linked two times already above).