【问题标题】:How to end a batch script if another process stops running如果另一个进程停止运行,如何结束批处理脚本
【发布时间】:2015-01-06 19:22:28
【问题描述】:

我正在寻找一种方法来运行我的批处理脚本,但它会在另一个进程结束时立即结束。这可能吗? 感谢您的帮助

【问题讨论】:

  • 进程运行时您的批处理文件在做什么?你试过什么?

标签: loops batch-file


【解决方案1】:
:check_again

qproc| find /i "myprocess.exe" >nul 2>&1 && (
   goto :check_again
)||(
  exit /b 0
)

?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-27
    • 2013-07-11
    • 2015-09-20
    • 1970-01-01
    • 1970-01-01
    • 2011-06-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多