Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call and close while the called executable is running?

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

like image 427
Jader Dias Avatar asked Feb 18 '11 15:02

Jader Dias


1 Answers

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.

like image 113
AntonyW Avatar answered Nov 17 '22 19:11

AntonyW