Script for synchronization is working but does not exit
Hi,
I have an issue with a script that is synchronizing data from one server to another server. The script works and syncs the files and folders I want, but it doesn't exit. I have similar scripts running on the same server and they are all working fine and exiting.
I have an issue with a script that is synchronizing data from one server to another server. The script works and syncs the files and folders I want, but it doesn't exit. I have similar scripts running on the same server and they are all working fine and exiting.
@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%