We help IT Professionals succeed at work.

How do I exit out of command/DOS window after calling executable

deepakra79
deepakra79 asked
on
771 Views
Last Modified: 2013-11-09
From a batch command I am calling an executable. But the DOS window keeps showing in background till executable is closed. How do I close after calling executable?
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
try:
cmd /c "program.exe"
CERTIFIED EXPERT

Commented:
At the end of the batch file, add the command EXIT

This command closes your command line session.
 

Author

Commented:
smasshed,
your solution worked for me.

Commented:
I believe using "start" is the best way to do this.
... <rest of batch file>
start external.exe
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.