And does the
Error occurred during logging. It's been turned off.
Can't open log file 'C:\path\to\winscp.log'.
System Error. Code: 2.
The system cannot find the file specified
/log=C:\path\to\winscp.logcommand-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
.xlsxfiles to the
archivefolder, but it keeps failing. Could someone let me know what I'm doing wrong?
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
"open sftp://test:firstname.lastname@example.org/ -hostkey=""ssh key here"" -rawsettings ProxyPort=0" ^
"cd /home/Reports/" ^
"mv *.xlsx /home/Reports/Archive/" ^
if %WINSCP_RESULT% equ 0 (
) else (
echo Attempt Failed!!!
exit /b %WINSCP_RESULT%