Close Windows command prompt after starting program using batch file


I have simple Windows batch file (.bat) which starts program but when we call this batch file it starts the program successfully but Windows command prompt remains on screen and it closes when we close the program which was started using batch file.

How can I set to close windows command prompt automatically once program is started?


By default Windows command prompt will be closed when you close your program which was started using batch file. To close Windows command prompt, you can use “start” command to start any program as follow:

start “” path-to-your-program

The above command will close Windows command prompt once your program is started.

commented on answer

This is a best option to launch any program via Windows batch file.

Bloom Email Optin Plugin