Re: Script for synchronization is working but does not exit
Thanks Martin, it's working now. I appreciate your response
"lcd C:\Subscriptions\SFTP\FamClaimNumbers\Files" ^
"synchronize local -filemask=*.*>10DS" ^
"exit"
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\WinScp\WinSCP.log" /ini=nul ^
/command ^
"open [SERVER_INFORMATION] ^
"cd /" ^
"lcd C:\Subscriptions\SFTP\FamClaimNumbers\Files" ^
"synchronize local -filemask=*.*>10DS" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%