5

In a batch file when you call an executable your prompt window stays open. How to hide it?

Jader Dias
  • 88,211
  • 155
  • 421
  • 625

2 Answers2

11

You can put "Start" before the name of the executable. This will start the executable and exit without waiting for it to finish.

For example,

notepad.exe
exit

will not close the command prompt window until notepad is closed.

start notepad.exe
exit

will exit immediately without waiting.

Of course, if subsequent actions in the batch file are dependent on the executable finishing then this will be of no use to you.

AntonyW
  • 2,284
  • 16
  • 21
0

There's a couple little utility .exe files here which allow you to maximize/minimize/restore shell windows.

Marc B
  • 356,200
  • 43
  • 426
  • 500