我试图通过执行以下命令
每小时运行一次计划任务schtasks / create / tn“我的任务”/ tr C:\ GTnE \ Sch.vbs / sc once / sd 2016/05/08 / st 10:26:00
任务已成功创建但未运行。
我也试过通过wscript
运行它 Set oShell = WScript.CreateObject ("WScript.Shell") strCmd="SCHTASKS
/create /tn Mytask1 /tr C:\GTnE\Sch.vbs /sc ONCE /sd 2016/05/08 /st
10:47" result = oShell.run(strCmd, 1, True) ' check the result to see
if the command was successful If result = 0 Then
MsgBox "SUCCESS!" Else
MsgBox "Task creation failed" End If