1.

Solve : Batch file does not exit?

Answer»

Hi.  I'm trying to make a bat for Win 2000 that will run a few printer related commands and then OPEN an executable.  The printer commands help with a glitch related to the exe.  The printer commands work fine.  I want the final action to start the exe and then have the CMD prompt window close.  Is there some way to have the window close even if the exe is still running?  It does make it all the way to the exe line, but stays open until the exe is closed.  Here is what I have so far:

ECHO OFF
ECHO Initializing printer drivers.
ECHO Correcting for HP related footer problems.
c:
cd\
CALL "c:\LaserJet_Restore_2000.bat"
"C:\INSTRON\COM\MERLIN.EXE"
CLS
EXITstart  "C:\INSTRON\COM\MERLIN.EXE"Adding START causes a 2ND cmd window to popup.  This window has a title of C:\INSTRON\COM\MERLIN.EXE and only shows a c: prompt.  The FIRST window closes, but the merlin.exe never opens.I FIGURED it out.  I needed to lose the extra quotes.  This worked:

ECHO OFF
ECHO Initializing printer drivers.
ECHO Correcting for HP related footer problems.
c:
cd\
CALL c:\LaserJet_Restore_2000.bat
START C:\INSTRON\COM\MERLIN.EXE
CLS
EXIT



Discussion

No Comment Found