问题
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.
回答1:
Update: This is now possible with:
wt myConsoleApp.exe
回答2:
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.
来源:https://stackoverflow.com/questions/57722060/how-to-run-an-executable-in-windows-terminal