Close Windows command prompt after starting program using batch file

Chris 21 Rep.

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?

Scott selected answer

Best answer

Scott 33 Rep.

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.

Kailash commented on answer


Login to see your profile links
Bloom Email Optin Plugin