[英]Creating Schedule Task from xml using Python
I have an .XML
file containing scheduled Task and I would like to add it to the task scheduler via python. 我有一个包含计划任务的.XML
文件,我想通过python将其添加到任务计划程序中。 Does anyone know how I could do this, or where i could learn how to do this? 有谁知道我该怎么做,或者在哪里可以学到呢?
There are various techniques in doing this. 有多种技术可以做到这一点。 The simplest way is: 最简单的方法是:
os.system("SCHTASKS /Create /XML foo.xml /TN Name_Of_Task /F")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.