|
7#
楼主 |
发表于 2012-5-6 08:24:29
|
只看该作者
回复 #6 pznpt 的帖子
非常谢谢 pznpt ,对于单个的 tasks 是可以取到当前的状态,如果系统中有多个计划任务(test、test1、test2、test3、test4) ,如何只取到其中的某一个计划任务的状态 ?
HostName: test-98D4D0
TaskName: test
Next Run Time: Disabled
Status:
Logon Mode: Interactive/Background
Last Run Time: 8:10:21 AM, 5/6/2012
Last Result: 0
Creator: Administrator
Schedule: Disabled
Task To Run: C:\test.bat
Start In: C:\
Comment: N/A
Scheduled Task State: Disabled
Scheduled Type: Daily
Start Time: 11:43:00 AM
Start Date: 5/5/2012
End Date: N/A
Days: Everyday
Months: N/A
Run As User: test-98D4D0\cls
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:0
Repeat: Every: Disabled
Repeat: Until: Time: Disabled
Repeat: Until: Duration: Disabled
Repeat: Stop If Still Running: Disabled
Idle Time: Disabled
Power Management: No Start On Batteries, Stop On Battery Mode
HostName: test-98D4D0
TaskName: test1
Next Run Time: 8:13:00 AM, 5/7/2012
Status:
Logon Mode: Interactive/Background
Last Run Time: Never
Last Result: 0
Creator: Administrator
Schedule: At 8:13 AM every day, starting 5/6/2012
Task To Run: C:\test.bat
Start In: C:\
Comment: N/A
Scheduled Task State: Enabled
Scheduled Type: Daily
Start Time: 8:13:00 AM
Start Date: 5/6/2012
End Date: N/A
Days: Everyday
Months: N/A
Run As User: test-98D4D0\cls
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:0
Repeat: Every: Disabled
Repeat: Until: Time: Disabled
Repeat: Until: Duration: Disabled
Repeat: Stop If Still Running: Disabled
Idle Time: Disabled
Power Management: No Start On Batteries, Stop On Battery Mode
HostName: test-98D4D0
TaskName: test2
Next Run Time: 8:25:00 AM, 5/7/2012
Status:
Logon Mode: Interactive/Background
Last Run Time: Never
Last Result: 0
Creator: Administrator
Schedule: At 8:25 AM every Mon of every week, starting 5/6/2012
Task To Run: C:\test.bat
Start In: C:\
Comment: N/A
Scheduled Task State: Enabled
Scheduled Type: Weekly
Start Time: 8:25:00 AM
Start Date: 5/6/2012
End Date: N/A
Days: MONDAY
Months: N/A
Run As User: test-98D4D0\cls
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:0
Repeat: Every: Disabled
Repeat: Until: Time: Disabled
Repeat: Until: Duration: Disabled
Repeat: Stop If Still Running: Disabled
Idle Time: Disabled
Power Management: No Start On Batteries, Stop On Battery Mode
HostName: test-98D4D0
TaskName: test3
Next Run Time: Disabled
Status:
Logon Mode: Interactive/Background
Last Run Time: Never
Last Result: 0
Creator: Administrator
Schedule: Disabled
Task To Run: C:\test.bat
Start In: C:\
Comment: N/A
Scheduled Task State: Disabled
Scheduled Type: Monthly
Start Time: 8:26:00 AM
Start Date: 5/1/2012
End Date: N/A
Days: 1
Months: JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC
Run As User: test-98D4D0\cls
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:0
Repeat: Every: Disabled
Repeat: Until: Time: Disabled
Repeat: Until: Duration: Disabled
Repeat: Stop If Still Running: Disabled
Idle Time: Disabled
Power Management: No Start On Batteries, Stop On Battery Mode
HostName: test-98D4D0
TaskName: test4
Next Run Time: 8:27:00 AM, 5/13/2012
Status:
Logon Mode: Interactive/Background
Last Run Time: Never
Last Result: 0
Creator: Administrator
Schedule: At 8:27 AM every Sun of every week, starting 5/6/2012
Task To Run: C:\test.bat
Start In: C:\
Comment: N/A
Scheduled Task State: Enabled
Scheduled Type: Weekly
Start Time: 8:27:00 AM
Start Date: 5/6/2012
End Date: N/A
Days: SUNDAY
Months: N/A
Run As User: test-98D4D0\cls
Delete Task If Not Rescheduled: Disabled
Stop Task If Runs X Hours and X Mins: 72:0
Repeat: Every: Disabled
Repeat: Until: Time: Disabled
Repeat: Until: Duration: Disabled
Repeat: Stop If Still Running: Disabled
Idle Time: Disabled
Power Management: No Start On Batteries, Stop On Battery Mode
[ 本帖最后由 2012_amwyy 于 2012-5-6 08:33 编辑 ] |
|