new-tab not working when running wt.exe from command line #6670

Closed
opened 2026-01-31 00:44:21 +00:00 by claunia · 3 comments
Owner

Originally created by @codenotworking on GitHub (Feb 29, 2020).

I read the documentation and saw new-tab subcommand. When I use it from the command line, it keeps opening a new instance of Windows Terminal.

For example:
wt.exe new-tab -d "c:\folder1"
wt.exe new-tab -d "c:\folder2"

I've even tried adding different profiles:
wt.exe new-tab -p "PowerShell Core" -d "c:\folder1"
wt.exe new-tab -p "Windows PowerShell" -d "c:\folder2"

How do I get the new-tab subcommand to work properly and only use one instance of Windows Terminal? Am I using the command correctly?

Any help would be much appreciated.

Originally created by @codenotworking on GitHub (Feb 29, 2020). I read the documentation and saw `new-tab` subcommand. When I use it from the command line, it keeps opening a new instance of Windows Terminal. For example: `wt.exe new-tab -d "c:\folder1"` `wt.exe new-tab -d "c:\folder2"` I've even tried adding different profiles: `wt.exe new-tab -p "PowerShell Core" -d "c:\folder1"` `wt.exe new-tab -p "Windows PowerShell" -d "c:\folder2"` How do I get the `new-tab` subcommand to work properly and only use one instance of Windows Terminal? Am I using the command correctly? Any help would be much appreciated.
claunia added the Resolution-Duplicate label 2026-01-31 00:44:21 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 29, 2020):

All wt commandline activations result in a new window right now. Fixing this requires us to fix /dup #4472.

@DHowett-MSFT commented on GitHub (Feb 29, 2020): All wt commandline activations result in a new window right now. Fixing this requires us to fix /dup #4472.
Author
Owner

@ghost commented on GitHub (Feb 29, 2020):

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 (Feb 29, 2020): 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!
Author
Owner

@codenotworking commented on GitHub (Feb 29, 2020):

Got it. Thanks for the information.

@codenotworking commented on GitHub (Feb 29, 2020): Got it. Thanks for the information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6670