[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

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?
0
deepakra79
Asked:
deepakra79
1 Solution
 
smasshedCommented:
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now