Solved

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

Posted on 2009-04-02
5
752 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?
0
Comment
Question by:deepakra79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Accepted Solution

by:
smasshed earned 25 total points
ID: 24047644
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
 
LVL 5

Expert Comment

by:ModarHijazi
ID: 24047651
try:
cmd /c "program.exe"
0
 
LVL 8

Expert Comment

by:engeltje
ID: 24047712
At the end of the batch file, add the command EXIT

This command closes your command line session.
 
0
 
LVL 1

Author Comment

by:deepakra79
ID: 24047769
smasshed,
your solution worked for me.
0
 

Expert Comment

by:x0tsing
ID: 27380649
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question