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

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?
LVL 1
deepakra79Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
smasshedConnect With a Mentor Commented:
You could use a program called bat to exe to compile the batch file, when you do this you can check a box called "ghost application", now when this is run you don't see anything but the program it has called.
0
 
ModarHijaziCommented:
try:
cmd /c "program.exe"
0
 
engeltjeCommented:
At the end of the batch file, add the command EXIT

This command closes your command line session.
 
0
 
deepakra79Author Commented:
smasshed,
your solution worked for me.
0
 
x0tsingCommented:
I believe using "start" is the best way to do this.
... <rest of batch file>
start external.exe
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.