SchTasks.exe 创建任务文件夹 [英] SchTasks.exe to create a task folder
问题描述
是否有在 Windows 2008 中创建计划任务文件夹的命令?我正在尝试使用 SchTasks.exe 创建任务,并希望将这些任务放在任务文件夹下.本质上,在任务计划程序中,添加一个新文件夹并在该文件夹下添加多个任务.从 UI 有一个选项可以创建一个文件夹,但不确定命令参考
Is there a command to create a Schedule task folder in Windows 2008? I am trying to use SchTasks.exe to create the tasks and would like to put these tasks under a task folder. Essentially, inside task scheduler, add a new folder and add multiple tasks underneath the folder. From UI there is an option to create a folder but not sure about command reference
提前致谢
推荐答案
几次尝试并解决了问题;关键是在任务名称中使用 "\" .示例 schtask.exe 命令行,
few trials and solved the problem; the key is using "\" in the task name. Sample schtask.exe command line,
schtasks /create /xml "MyTask.xml" /tn "My Task Folder\My New Task"
新建一个任务文件夹我的任务文件夹,并在新文件夹下新建一个任务我的新任务
creates a new task folder My Task Folder and creates a new task My New Task under the new folder
如果需要在现有文件夹下创建任务,请尝试
If the task needs to get created under an existing folder, try
schtasks /create /xml "MyTask.xml" /tn "Existing Task Folder\My New Task"
在现有任务文件夹现有任务文件夹
这篇关于SchTasks.exe 创建任务文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!