如何得到计划任务的状态?
如何设置计划任务?
怎么对计划任务操作呢。
比如说:我要看到test这个任务的状态谢谢了

解决方案 »

  1.   

    要加计划任务,2000或xp可以试试at ,运行一个命令,如at \\computer 11:11 c:\autoexec.bat,具体用shellexec(没拼错吧!!),没试过!!自己试试吧:)
      

  2.   

    具体实现我没有试过
    给你些提示,看看有没有帮助
    如果是用delphi来实现,最好先去jedi下载taskschedule对应的pas单元
    IScheduledWorkItem接口提供了GetStatus方法
    IScheduledWorkItem::GetStatusHRESULT GetStatus(
      HRESULT *phrStatus
    );
    返回的就是当前条目的状态
    phrStatus 
    [out] Pointer to an HRESULT value that contains one of the following values on return. 
    SCHED_S_TASK_READY 
    The work item is ready to run at its next scheduled time. 
    SCHED_S_TASK_RUNNING 
    The work item is currently running. 
    SCHED_S_TASK_NOT_SCHEDULED 
    One or more of the properties that are needed to run this work item on a schedule have not been set.
      

  3.   

    http://forums.jedi.net/phpBB2/
    是这个网址么?