开发者

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

开发者 https://www.devze.com 2023-02-11 17:50 出处:网络
In a batch开发者_运维百科 file when you call an executable your prompt window stays open. How to hide it?You can put \"Start\" before the name of the executable. This will start the executable and exi

In a batch开发者_运维百科 file when you call an executable your prompt window stays open. How to hide it?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消