运行 新命令行终端中的命令 (Windows)
Run commands in new command line terminals (Windows)
我想运行一个命令,运行在三个不同的终端中使用三个命令。我在 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
您正在寻找 start
.
例如,
start dir
将打开一个新的命令提示符 window 并在新的 window 中执行 dir
。
见https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start
我想运行一个命令,运行在三个不同的终端中使用三个命令。我在 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
您正在寻找 start
.
例如,
start dir
将打开一个新的命令提示符 window 并在新的 window 中执行 dir
。
见https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start