SchTasks /Delete
是同步操作吗?
OR是否有可能在SchTasks
完成并返回成功的错误代码之后还有另一个任务触发?这会在我们的取消部署软件中引入竞争条件。
不幸的是,我们无法找到有关它的任何信息。有人知道或有来源说明这一点吗?否则我必须启动ProcExp / ProcMon并找出自己......
答案 0 :(得分:0)
It behaves as though it is synchronous... I have created and used batch files to import/export/delete scheduled tasks (saved as xml files) using the SchTasks.exe util for several years. I don't have an official statement from Microsoft, but I have never had problems deleting a couple dozen tasks one right after another. I know that when the executable is finished the task is gone.