Divi WordPress Theme

Topic: Close Windows command prompt after starting program using batch file  (Read 437 times)

Offline Chris

  • Junior Guru
  • **
  • Posts: 77
  • iTrader: +0/-0
    • View Profile
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?
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 652
  • iTrader: +153/-0
    • View Profile
Re: Close Windows command prompt after starting program using batch file
« Reply #1 on: October 30, 2019, 05:16:48 PM »
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.
Shopify Divi WordPress Theme
Tags: