1. Go to the ApplicareSingleAgent Home path.
2. Copy and Paste the StopAgent.bat file in the same directory. It will create a stopAgent - Copy.bat file.
3. Rename the stopAgent - Copy.bat file to Restart.bat file and edit that file and replace all the existing content with the below content and save the file.
@echo off
schtasks /run /tn "\ApplicareAgent\StopSingleAgent"
timeout /t 10 /nobreak
schtasks /run /tn "\ApplicareAgent\SingleAgent"
4. Open Task Scheduler in Administrator mode and select the ApplicareAgent directory.
5. Right click inside and select Create New Task option.
6. In the General Tab
a. Enter the name as Restart.
b. Select Run whether user is logged on or not.
c. Select Do not Store Password.
d. Select Run with highest privileges.
7. select the Triggers Tab and select New button.
8. Set the below options.
a. Select Daily.
b. Select Repeat Task Every option.
c. Change it to 6 hours. We need to enter this option manually it will not be in the dropdown.
d. Select duration dropdown value to Indefinitely and click ok button.
9. Select Actions Tab and click the New button.
10. Click the Browse button and select the Restart.bat file and click the open button.
11. Now copy the full Program/script path and paste it in the Add Arguments (optional) and start in (optional) fields.
12. But in the Start in (optional) filed remove the Restart.bat keyword and click the Ok button.
13. Select the Conditions Tab and unselect all the check-boxes.
14. Select the Settings Tab and enable only below two check-boxes.
a. Select Allow task to be run on demand.
b. Select If the running task does not end when requested, force it to stop.
c. Click ok button.
Comments
0 comments
Article is closed for comments.