如何使用schtasks.exe创建任务,每月有几天

时间:2013-01-08 15:26:40

标签: windows command-line cmd scheduled-tasks schtasks.exe

我尝试使用命令行创建此计划任务:

enter image description here

enter image description here

我试过了:

  

schtasks.exe / Create / tn test1 / tr notepad.exe / sc montly / m jan,feb / d 12,27

但似乎/ d只能获得一个参数,例如:/ d 12

如何创建与向导中相同的任务?我想创建一个每月12日和27日运行的任务。

谢谢, INBAL。

1 个答案:

答案 0 :(得分:0)

我找到的唯一方法是使用xml并将其作为参数传递给/ create命令。