I have been trying to make this work for over a week now with no luck.
I am new to this. I am running winscp 5.9
I wrote a few reports that need to upload to an sftp site on a daily basis.
first off can 5.9 have a way to automate this upload?
I try using the code generator, however i am unfamiliar with how to enter the code correctly, and even more so how to execute it afterwards.
I can add a batch file to the task scheduler. but what is the correct way to get this to synchronize?
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
"open sftp:blah blah/ -hostkey=""ssh-rsa blah-blah""blah" ^
"Your command 1" ^
"synchronize remote C:\Blah-blah /to_blah
"Your command 2" ^
if %WINSCP_RESULT% equ 0 (
) else (
exit /b %WINSCP_RESULT%