【发布时间】:2016-09-13 19:59:15
【问题描述】:
这是我得到的:
SCHTASKS /query /tn "test" | find /c "Running" &&(
goto finish
)||(
SCHTASKS /create /tn "test" /sc minute /mo 10 /tr c:\bin\go.vbs
)
:finish
echo.
echo Done
echo.
timeout 3
我想检查test 任务是否已经在运行。此功能有效,但即使关闭回显,find /c 部分仍会返回 1 或 0,具体取决于任务是否正在运行。
有没有办法让它在我在命令行中运行时不会打印出 1 或 0?
【问题讨论】:
标签: batch-file find windows-task-scheduler