Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Bash / Shell Scripting (http://www.programmingforums.org/forum26.html)
-   -   Batch File - Running a exe and closing the winodw (http://www.programmingforums.org/showthread.php?t=12217)

mark84 Dec 19th, 2006 2:33 PM

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.

The Dark Dec 19th, 2006 6:32 PM

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

mark84 Dec 20th, 2006 1:22 AM

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 ?


All times are GMT -5. The time now is 1:33 AM.

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