/log path
Hello everyone,
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?
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
/command ^
"open sftp://denis_lomakin:Babushka%%402128@files.blackbaudhosting.com/ -hostkey=""ssh-rsa 1024 b36bXCOIuJJlXQcAxy3DLz+UYidT6YlmZzqZChwkyUk=""" ^
"cd /6745/Denis" ^
"lcd Q:\testRE" ^
"get ""Constituent Table.CHR""" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%
Thanks
Denis
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?
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
/command ^
"open sftp://denis_lomakin:Babushka%%402128@files.blackbaudhosting.com/ -hostkey=""ssh-rsa 1024 b36bXCOIuJJlXQcAxy3DLz+UYidT6YlmZzqZChwkyUk=""" ^
"cd /6745/Denis" ^
"lcd Q:\testRE" ^
"get ""Constituent Table.CHR""" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%
Thanks
Denis