ctyar
ctyar

Reputation: 1743

How to run an executable in Windows Terminal?

I want to run an executable with Windows Terminal. Something like this:

wt.exe myConsoleApp.exe

But this only opens the Terminal itself.

Making the Terminal the default for all ps1, bat and command line exe files would work too.

Upvotes: 3

Views: 21398

Answers (3)

niikoo
niikoo

Reputation: 11

If you're using Windows 11:

If wt.exe does not work, check if Windows Terminal / wt.exe is enabled under "App execution aliases" (in Settings).

Go to Settings > Apps > Apps & features > App execution aliases. Check that the line containing wt.exe is checked. (click for photo)

Upvotes: 1

ctyar
ctyar

Reputation: 1743

Update: This is now possible with:

wt myConsoleApp.exe

Upvotes: 1

rkg
rkg

Reputation: 881

You should include start when you want to run an executable. For example:

start wt.exe

Also note that, you should include the full file path if you are not currently on the directory of your executable file.

Upvotes: -1

Related Questions