I am trying to run the a scheduler that executes a batch file.In this batch file I am trying to run synctoy application and the application runs successfully. The scheduler runs successfully. I want to add a script in batch file that exit the command prompt once synctoy synchronization is completed, not before the completion. Here is my code
@echo on C: cd C:\Program Files\SyncToy 2.1 SyncToyCmd -R > D:\logs\sync_logs.txt
Can anyone tell me that how can I exit the command prompt when the sync_logs.txt is updated not before that.
Thanks in advance.