【问题标题】:Batch file status needed to run another .bat file运行另一个 .bat 文件所需的批处理文件状态
【发布时间】:2016-07-04 04:59:12
【问题描述】:

我需要通过检查早期的 .bat 脚本是否仍在运行或完成来启动批处理脚本。无论如何可以从任务列表中找到该进程,因为它仅列出 .exe 文件和其他应用程序,而不列出 .bat 文件。如果有的话,有人可以通过任何其他可行的选择来帮助我。

对此的任何帮助将不胜感激。

谢谢你,西基兰

【问题讨论】:

    标签: batch-file batch-processing


    【解决方案1】:
    wmic process where commandline='C:\\Windows\\system32\\cmd.exe /c ""C:\\Users\\David Candy\\Desktop\\test.bat" "' get commandline  
    

    使用find进行解析。

    使用wmic process get commandline 列出批处理文件的命令行。

    【讨论】:

      猜你喜欢
      • 2014-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-30
      相关资源
      最近更新 更多