开发者

Enable schedule task using a batch file

开发者 https://www.devze.com 2023-03-13 04:42 出处:网络
I need to enable a schedule开发者_JS百科 task through a batch file, this schedule task is set to run every 2 mins once enabled.

I need to enable a schedule开发者_JS百科 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.


You can do this by at command

Example:

at 10AM every:SU "C:\Program Files\VideoLAN\VLC\vlc.exe"
0

精彩评论

暂无评论...
验证码 换一张
取 消