Confused Amused Posted January 7, 2005 Posted January 7, 2005 I'm so close to done with my disc, so this is driving me crazy. When I get to cleanup.cmd most of it runs perfectly, until I get to a point where I call another batch file. I see that batch file open and close and then my cleanup.cmd gets stuck and I have to manually click the X to close it, and nothing below my call to the other batch file is run. Here's the script below, any help would be great.REM-------------------------------------------------------------------------------------REM Setup Firefox AssociationsREM-------------------------------------------------------------------------------------start /wait %systemdrive%\install\Applications\Firefox\Firefox.cmdREM-------------------------------------------------------------------------------------REM Remove unnecessary directoriesREM-------------------------------------------------------------------------------------ATTRIB -R "%systemdrive%\My Shared Folder" /s /dATTRIB -R "%systemdrive%\Install" /s /dATTRIB -R "%systemdrive%\OfficeTEMP" /s /dATTRIB -R "%systemdrive%\McAfee" /s /dSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Finishing Cleanup" /fREG ADD %KEY%\200 /VE /D "Removing installation files" /fREG ADD %KEY%\200 /V 1 /D "CMD /C RD /S /Q %systemdrive%\Install\" /fREG ADD %KEY%\200 /V 2 /D "CMD /C RD /S /Q %systemdrive%\OfficeTEMP\" /fREG ADD %KEY%\200 /V 3 /D "CMD /C RD /S /Q %systemdrive%\McAfee\" /fshutdown.exe -R -F -T 90 -c "Restarting in 1 minute and 30 seconds"EXITThe problem seems to come in after firefox.cmd gets called. One other question, if I make a batch file with:shutdown.exe -r -f -t 90 -c "Restarting in 1 minute and 30 seconds" and open it on the desktop it doesn't work. But if I type it at the command line it works fine. Any ideas?Thanks.
Yzöwl Posted January 7, 2005 Posted January 7, 2005 have you tried replacing the start /wait bit withREM-------------------------------------------------------------------------------------REM Setup Firefox AssociationsREM-------------------------------------------------------------------------------------CALL %systemdrive%\install\Applications\Firefox\Firefox.cmdREM----<snip>
Confused Amused Posted January 7, 2005 Author Posted January 7, 2005 No I hadn't, but since I'm calling this through RunOnceEx I just added the Firefox.cmd as another item under the general "Cleaning Up" item and it seems to work ok. Thanks though.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now