Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to change the file name and add alert 16 58
Autoit restart command not working 6 58
Google  (Get  Users Email) 2 100
Command prompt output to variable? 8 0
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
The viewer will learn how to dynamically set the form action using jQuery.
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now