Feature Request: CMD's "start" command should open new tab instead of new window #13511

Closed
opened 2026-01-31 03:44:40 +00:00 by claunia · 4 comments
Owner

Originally created by @rajan-31 on GitHub (Apr 17, 2021).

Description of the new feature/enhancement

Feature:

CMD's "start" command should open new tab instead of new window

OR

any other option to run command in separate tabs (like we open new tabs of specific terminal).

Example:

start npm run startMongo && start npm run local

Expected: It should open two tabs of "Windows Terminal" running each command

Current Behavior: It opens two separate windows of CMD (also they are not Windows Terminal windows)

Proposed technical implementation details (optional)

Not sure about solution

As per my knowledge currently it is not possible to open tabs with command in same instance, but like we can open new tabs of specific terminals using

wt -p "Command Prompt" ; new-tab -p "Windows PowerShell"

like this we can add new option to run the command in new tab.

Example: assume that the new option is "--run"

wt --run "npm run startMongo" -p "Command Prompt" ; new-tab --run "npm run local" -p "Windows PowerShell"

Originally created by @rajan-31 on GitHub (Apr 17, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement > **Feature**: > > CMD's "start" command should open new tab instead of new window > > OR > > any other option to run command in separate tabs (like we open new tabs of specific terminal). **Example**: `start npm run startMongo && start npm run local` **Expected**: It should open two tabs of "Windows Terminal" running each command **Current Behavior**: It opens two separate windows of CMD (also they are not Windows Terminal windows) <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) **Not sure about solution** As per my knowledge currently it is not possible to open tabs with command in same instance, but like we can open new tabs of specific terminals using `wt -p "Command Prompt" ; new-tab -p "Windows PowerShell"` like this we can add new option to run the command in new tab. Example: assume that the new option is "--run" `wt --run "npm run startMongo" -p "Command Prompt" ; new-tab --run "npm run local" -p "Windows PowerShell"` <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 03:44:40 +00:00
Author
Owner

@LuanVSO commented on GitHub (Apr 19, 2021):

try wt --window 0 -p "Command Prompt" npm run startMongo; -p "Windows PowerShell" npm run local

@LuanVSO commented on GitHub (Apr 19, 2021): try `wt --window 0 -p "Command Prompt" npm run startMongo; -p "Windows PowerShell" npm run local`
Author
Owner

@rajan-31 commented on GitHub (Apr 19, 2021):

I got,

[error 0x80070002 when launching `npm run startMongo']

&

[error 0x80070002 when launching `npm run local']

@rajan-31 commented on GitHub (Apr 19, 2021): I got, [error 0x80070002 when launching `npm run startMongo'] & [error 0x80070002 when launching `npm run local']
Author
Owner

@zadjii-msft commented on GitHub (Apr 19, 2021):

FYI when there's support for "setting the default terminal" (#492), then start foo.exe will open up foo.exe in a new WT tab.

For now, you'll need to use the wt -w option. @rajan-31 out of curiousity, is your default profile a WSL profile? If you're trying to run a WSL commandline, you'll need to make sure to prefix the command with wsl.exe -d {Whatever-Distro-You-Have-Installed}, like wt -w 0 -- wsl -d Ubuntu npm run startMongo

/dup #492
/dup #4472

@zadjii-msft commented on GitHub (Apr 19, 2021): FYI when there's support for "setting the default terminal" (#492), then `start foo.exe` will open up `foo.exe` in a new WT tab. For now, you'll need to use the `wt -w` option. @rajan-31 out of curiousity, is your default profile a WSL profile? If you're trying to run a WSL commandline, you'll need to make sure to prefix the command with `wsl.exe -d {Whatever-Distro-You-Have-Installed}`, like `wt -w 0 -- wsl -d Ubuntu npm run startMongo` /dup #492 /dup #4472
Author
Owner

@ghost commented on GitHub (Apr 19, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 19, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13511