【问题标题】:Run commands in new command line terminals (Windows)在新的命令行终端中运行命令 (Windows)
【发布时间】:2020-02-11 23:11:07
【问题描述】:

我想运行一个在三个独立终端中运行三个命令的命令。我已经看到了很多关于如何在 Linux 和 OSX 中实现这一点的答案,但对于 Windows 却没有。

第一个命令(dotnet):

x: && cd folder-1\folder-2 && cd MyGame\src\MyGame.Api && dotnet restore --interactive && dotnet run

第二条命令(节点):

x: && cd folder-1\folder-2 && cd client && npm install && npm run start

第三条命令(git):

x: && cd folder-1\folder-2 && git checkout master && git pull

【问题讨论】:

    标签: windows command-line command-prompt


    【解决方案1】:

    您正在寻找start

    例如,

    启动目录

    将打开一个新的命令提示符窗口并在新窗口中执行dir

    https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start

    【讨论】:

    • 如此简单却又如此强大 - 非常感谢。当我被允许时将标记为已接受(显然我必须等待 5 分钟)。
    猜你喜欢
    • 2018-12-28
    • 2019-12-22
    • 2017-07-06
    • 2014-02-28
    • 2020-06-10
    • 1970-01-01
    • 2021-12-09
    • 2018-06-19
    • 1970-01-01
    相关资源
    最近更新 更多