Solved

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

Posted on 2009-04-02
5
747 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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.

790 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