Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 19th, 2006, 1:33 PM   #1
mark84
Newbie
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0 mark84 is on a distinguished road
Smile Batch File - Running a exe and closing the winodw

Hi everyone,

I have a simple batch file that does some tasks and finally runs a exe,

task1 
task2
.
.
.
"C:\Program Files\ATITool\ATITool.exe"

But when it runs the ATITool.exe, the black DOS window just stays there in the foreground. So all I want is to do is close that window automatically after it executes the ATITool.exe.

How can I do this ?

Any help will be appereciated.
mark84 is offline   Reply With Quote
Old Dec 19th, 2006, 5:32 PM   #2
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 816
Rep Power: 4 The Dark is on a distinguished road
Put "start" before the command
e.g.
start "" "C:\Program Files\ATITool\ATITool.exe"

The first set of quotes are for the window title

Edit: added and fixed the quotes
The Dark is offline   Reply With Quote
Old Dec 20th, 2006, 12:22 AM   #3
mark84
Newbie
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0 mark84 is on a distinguished road
Thanks so much mate.
Its working now.

I have been struggling with the start and call commands but wasn't able to do it sucessfully as I was using,

start "C:\Program Files\ATITool\ATITool.exe"

instead of what you suggested,

start "" "C:\Program Files\ATITool\ATITool.exe"

Thats the title parameter, right ?
mark84 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:15 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC