【问题标题】:Windows Command Line: execute a .bat file in a new console windowWindows 命令行:在新的控制台窗口中执行 .bat 文件
【发布时间】:2018-09-11 06:46:20
【问题描述】:

我有 4 个 DOS 批处理文件:

GoCore1.bat
GoCore2.bat
GoCore3.bat
GoCore4.bat

我想在其自己的控制台窗口中启动每个 bat 文件单个 .bat 文件 (go.bat)。 Windows 7 是操作系统。

这可能吗?如果是这样,创建新控制台窗口并开始执行 GoCoreX.bat 的语法是什么?

感谢任何有助于提高问题的建设性反馈:请不要在没有留下建设性反馈的情况下投反对票。

【问题讨论】:

    标签: windows cmd windows-console


    【解决方案1】:

    在您的go.bat 中尝试START command

    start "myWindow1" GoCore1.bat
    start "myWindow2" GoCore2.bat
    start "myWindow3" GoCore3.bat
    start "myWindow4" GoCore4.bat
    

    START "title" [/D path] [options] "command" [parameters]

    Key:
       title       Text for the CMD window title bar (required.)
       path        Starting directory.
       command     The command, batch file or executable program to run.
       parameters  The parameters passed to the command.
    

    【讨论】:

      猜你喜欢
      • 2012-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-22
      • 2010-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多