I am trying to set up automated data transfer.
So I get WinSCp generates the code for batch file (the code is below).
But when I create batch file and run it it does nothing.
On the website it says: In the Command-line (and possibly also in the Batch file), you should modify a path to a session log file in the /log switch.
So I put this: /log="C:\writable\%TEMP%\to\log\WinSCP.log" /ini=nul ^ but is still does not work.
Can anybody help me to understand what I am doing wrong?
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
"open sftp://denis_lomakin:Babushkafirstname.lastname@example.org/ -hostkey=""ssh-rsa 1024 b36bXCOIuJJlXQcAxy3DLz+UYidT6YlmZzqZChwkyUk=""" ^
"cd /6745/Denis" ^
"lcd Q:\testRE" ^
"get ""Constituent Table.CHR""" ^
if %WINSCP_RESULT% equ 0 (
) else (
exit /b %WINSCP_RESULT%