Batch file to upload files created today
Hi, I am trying to put a file into a remote location and delete it after the upload process completes. It is failing with this error
The script that I am using is as below:
Regards,
Ram
I have attached the log file.(ExtException) **Copying files to remote side failed.**
The script that I am using is as below:
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\WinSCP\WinSCP.log" /rawconfig Logging\LogFileAppend=0 /ini=nul /command ^ "open ftp://username:password@ip address:port/" ^ "cd /remote directory" ^ "lcd ""local directory""" ^ "put -filemask=*>=today ""Local directory\*"" -delete" ^ "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%
Ram