I need to enable a schedule task through a batch file, this schedule task is set to run every 2 mins once enabled. Using SCHTASKS /Run -- run the task but only once it does not care about the schedule i.e to run every 2 mins
I need to do this through a batch file. I am using Windows 2003 server.
Please guide.
schtasks /change /tn "TaskNameGoesHere" /ENABLE
You can do it in Batch. You can use schtasks /? or visit http://ss64.com/nt/schtasks.html. You can get very granular with your options and there are many switches available to use. Customize to your heart's desires.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With