在我的
Windows 7机器上,我可以运行如下:
schtasks.exe /Change /TN "MyTaskName" /Disable
但/ Windows中似乎没有/禁用 – 有没有办法从命令行禁用它?
/ disable开关仅为
feature of Vista/7/2008R2/2012.
原文链接:/windows/370200.htmlschtasks /Create /SC HOURLY /TN "TEST TASK" /TR notepad schtasks TaskName Next Run Time Status ==================================== ======================== =============== TEST TASK 09:45:00,7/26/2010 move "C:\WINDOWS\Tasks\TEST TASK.job" "C:\WINDOWS\Tasks\TEST TASK.bak" schtasks INFO: There are no scheduled tasks present in the system.
schtasks INFO: There are no scheduled tasks present in the system. move "C:\WINDOWS\Tasks\TEST TASK.bak" "C:\WINDOWS\Tasks\TEST TASK.job" schtasks TaskName Next Run Time Status ==================================== ======================== =============== TEST TASK 09:45:00,7/26/2010