• Welcome to Web Hosting Forum - A Web Hosting Community for Webmasters.
 

Recommended Providers



WordPress Hosting

Jetpack
Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress

WordPress Hosting Divi WordPress Theme
WPZOOM
Bluehost WordPress Hosting

Forum Membership

Forum Membership

Close Windows command prompt after starting program using batch file

Started by Chris, October 30, 2019, 05:11:51 PM



Chris

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?

Kailash

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.


WordPress Hosting