Terminal: How to run a bat file in current windows terminal instead of open new cmd window?

Created on 25 Mar 2020  Â·  1Comment  Â·  Source: microsoft/terminal

  • I want to know, how to run a bat file just in the windows terminal
  • I have try to use call or start, but it did not work
  • everytime I open a bat file, It always open a ugly cmd window
  • anyone can help?
Issue-Question Needs-Author-Feedback Needs-Tag-Fix Product-Terminal Resolution-Answered

Most helpful comment

Thanks for the suggestion! This isn't something that's really supported by the Terminal currently. You can refer to #492 for more details.

You _might_ be able to use the wt commandline arguments to serve the purpose you want. Something like wt cmd /c my_bat_file.bat would work to open a new Windows Terminal window running my_bat_file.bat.

>All comments

Thanks for the suggestion! This isn't something that's really supported by the Terminal currently. You can refer to #492 for more details.

You _might_ be able to use the wt commandline arguments to serve the purpose you want. Something like wt cmd /c my_bat_file.bat would work to open a new Windows Terminal window running my_bat_file.bat.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Byloth picture Byloth  Â·  56Comments

amithegde picture amithegde  Â·  114Comments

dhavalhirdhav picture dhavalhirdhav  Â·  56Comments

privacyguy123 picture privacyguy123  Â·  131Comments

migueldeicaza picture migueldeicaza  Â·  58Comments