Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

747 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

12 Experts available now in Live!

Get 1:1 Help Now