"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\FTPlog\WinSCP.log" /ini=nul ^
"option confirm off" ^
"put C:\XXXX\XXX\filename.xlsx /xxx/xx/xxx/upload" ^
if %WINSCP_RESULT% equ 0 (
) else (
exit /b %WINSCP_RESULT%
I've removed the connecting info, but if I dont have filename.xlsx in there it works without issues and uploads the files.
I want to upload the specific file with a timestamp then remove the file locally after i am done.
Something is missing, either """ or something not sure.