I would like to run a command that runs three commands in three separate terminals. I've seen a lot of answers for how to achieve this in Linux and OSX but nothing for Windows.
First command (dotnet):
x: && cd folder-1\folder-2 && cd MyGame\src\MyGame.Api && dotnet restore --interactive && dotnet run
Second command (node):
x: && cd folder-1\folder-2 && cd client && npm install && npm run start
Third command (git):
x: && cd folder-1\folder-2 && git checkout master && git pull
You are looking for start
.
For example,
start dir
will open a new Command Prompt window and execute dir
in the new window.
See https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.