Windows命令行:在新的控制台窗口中执行.bat文件

问题描述 投票:-1回答:1

我有4个DOS批处理文件:

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

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

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

我们赞赏任何有助于提出问题的建设性反馈意见:请不要在没有留下建设性反馈的情况下投票。

windows cmd windows-console
1个回答
1
投票

在你的START command尝试go.bat

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

开始“标题”[/ D路径] [选项]“命令”[参数]

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.
© www.soinside.com 2019 - 2024. All rights reserved.