以编程方式如何在Windows Server 2008中创建任务计划程序

问题描述:

在Windows Xp中运行我的应用程序时,任务计划程序可以正常工作,因为任务文件另存为.job.但是在Windows Server 2008中,任务计划程序文件以XML格式保存.如何获取Xml格式的Task Scheduler?

The task scheduler which works fine when running my application in Windows Xp because task file is saved as .job. But in windows server 2008 the task scheduler file is saving in XML format. How to get the Task scheduler in Xml format?

看看Task Scheduler API http://msdn.microsoft.com/en-us/library/bb736357.aspx

Have a look at Task Scheduler API http://msdn.microsoft.com/en-us/library/aa383614(v=vs.85).aspx or use Schtasks.exe http://msdn.microsoft.com/en-us/library/bb736357.aspx