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

Open
opened 2026-01-31 00:44:18 +00:00 by claunia · 0 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:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6667