Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XPE how do you close a batch file that stays open?

Status
Not open for further replies.

Stevieraycover

IS-IT--Management
Jan 29, 2004
14
0
0
US
In XPE how do you get the batch file command window that is staying open to close? When we are launching an application via a batch file the command window won't close. Anyone have an idea on how to accomplish this?
Steve
 
when you are calling the program from the batch file the batch file is waiting till the program has finished before going to the next line. Even if you put an exit it would not read the exit till the program completes. You need to call your program with the start command. For instance if you are calling winword.exe use "start winword.exe" without the quotes.
 
Thanks for the tips. I'll give the "start winword" a try.
 
start /b exefile.exe

Will sort it out, either at the end of your .cmd file or even put exit at the end just to make sure!

Cheers,
Carl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top