close command prompt after executing as batch file
Hi Experts,
Probably I am asking very stupid question. But I can't do it anyway.
I put a batch file in windows startup, from where one exe is called. Thats it. I need to close the batch file after invoking that exe. The problem is the command prompt is stay opened after invoking that exe. How to close that command prompt (i.e. dos window)?
if it is only one exe you could run it instead of the batch but if you want to do it in the batch then use the START keyword. that makes it run the other app then carry on straight away, normally in a batch if you run an exe you want it to wait and do them in order.
with start the first parameter in quotes is the window title so if you need quotes because of spaces in exe path or name then use:
with start the first parameter in quotes is the window title so if you need quotes because of spaces in exe path or name then use:
start "" "c:\program files\.....yourexe.exe"
or
start c:\shortpath\yourexe.exe
hth
Steve