byte.chaser Posted May 28, 2004 Posted May 28, 2004 Ok, in my cleanup.cmd file i have the following ECHO.ECHO Cleaning up temp files...RD /S /Q %systemdrive%\installECHO.ECHO Restarting The PC In 1 Minutestart /wait shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"EXITThis seems to work ok, but the EXIT part..If i leave the EXIT at the end, shutdown runs, then the dos window closes, and shutdown gets aborted some how.If i remove the EXIT commandECHO.ECHO Cleaning up temp files...RD /S /Q %systemdrive%\installECHO.ECHO Restarting The PC In 1 Minutestart /wait shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"Shutdown starts, but the dos window behind it stays and exporer doesnt seem to load. Is this suposed to happen? Will this be a problem for all the programs and hotfixes that installed?When the system restars after, everything "seems" ok. I guess i am just expecting to run shutdown, and during those 60 seconds explorer will load...then shutdown.Hopefully i'm making sense.. I think its the "this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart! Thats throwing me off perhaps.
Alanoll Posted May 28, 2004 Posted May 28, 2004 remove the /waittechnically, you don't need teh start either. Just shutdown.exe.You don't want the computer to wait while it's counting donw to shutdown
byte.chaser Posted May 28, 2004 Author Posted May 28, 2004 ok i removed the start /wait...But is'nt explorer suposed to fully load before it shuts down?Sorry the odd question.
edmoncu Posted May 28, 2004 Posted May 28, 2004 i suppose not. i think all pending processes will wait (when you add the wait parameter) for the app to end before it continues loading those pending processes/apps (explorer included).
Alanoll Posted May 28, 2004 Posted May 28, 2004 It's sometimes better to let it fully load, that's what the wait period is for.By having start /wait when you called SHUTDOWN.EXE, it prevented the desltop from loading. Removign it will close teh batch, but SHUTDOWN.EXE should keep running so that the desktop loads fully.
byte.chaser Posted May 28, 2004 Author Posted May 28, 2004 It's sometimes better to let it fully load, that's what the wait period is for.By having start /wait when you called SHUTDOWN.EXE, it prevented the desltop from loading. Removign it will close teh batch, but SHUTDOWN.EXE should keep running so that the desktop loads fully.ok trying that now in vmwareall i have in there now isECHO.ECHO Cleaning up temp files...RD /S /Q %systemdrive%\installECHO.ECHO Restarting The PC In 1 Minuteshutdown.exe -r -f -t 70 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"EXIT
byte.chaser Posted May 28, 2004 Author Posted May 28, 2004 hmmm same thing happenedShutdown started, then the dos window colsed...then shutdown aborted.Could this have something to do with me using vmare?Or is there something wrong with my file? I removed the cleanup.cmd file and just added it into my main .cmd file run from guirunonceCLS@echo offMODE CON COLS=80 LINES=40COLOR 0FTITLE Windows XP SP1 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Importing Reg TweaksREGEDIT /S %systemdrive%\apps\regtweaks.regECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\Applications\DirectX9b\DX9NTopk.exeECHO.ECHO Installing WinRAR 3.3 PlusECHO Please wait...start /wait %systemdrive%\install\Applications\wrar330.exe /sECHO.ECHO Installing Spybot SD v1.3start /wait %systemdrive%\install\Applications\spybot\spybotsd13.exe /VERYSILENT /NOCANCEL /TASKBARHIDE /AUTOCLOSEECHO.ECHO Installing Nero Burning ROM v6.3.1.6ECHO Please wait...start /wait %systemdrive%\install\Applications\nero\nero6316.exe /SN=xxxxxxxxxxxxxxxxxxxxxxxx /WRITE_SN /SILENT /NOREBOOTECHO.ECHO Installing Alcohol 120 ECHO Please wait...start /wait %systemdrive%\install\Applications\alcohol120\setup.exe /qn Reboot=SuppressECHO.ECHO Reigistering alcohol 120....REGEDIT /S %systemdrive%\Applications\alcohol120\asoft.regECHO.ECHO Verifying hotfix installation. Please run qfecheck after reboot to check for proper hotfix installation.ECHO Please wait...start /wait %systemdrive%\install\Applications\Q282784.exe -u -q -zECHO.ECHO Installing codecsstart /wait %systemdrive%\install\codecs.cmdECHO.ECHO Registering codec files...REGEDIT /S %systemdrive%\install\codecs.reg ECHO.ECHO Cleaning up temp files...RD /S /Q %systemdrive%\installECHO.ECHO Restarting The PC In 1 Minuteshutdown.exe -r -f -t 70 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"EXIT
byte.chaser Posted May 28, 2004 Author Posted May 28, 2004 I think it may have something to do with vmware.I just threw the .cmd file into my startup folder and restarted, and it worked the way its supposed to. Although I dont know if that is really the same..
wyattXP Posted May 30, 2004 Posted May 30, 2004 i know that sometimes progs are still installing and the shut down continues, i decided in mine since i waited sooooo long for the process to complete that i made the wait time 5 minutes to shut down, that gave it PLENTY of time to finish up adn load.ECHO.ECHO Restarting the PC in 5 minutes...shutdown.exe -r -f -t 300 -c "Windows XP Professional Service Pack 2 will restart in 5 minutes, this will give enough time for Windows to update the shell and to fully load before it's ready to restart! Please remain patient, the whole process is almost over."ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXIT
byte.chaser Posted May 31, 2004 Author Posted May 31, 2004 ECHO.ECHO Restarting the PC in 5 minutes...shutdown.exe -r -f -t 300 -c "Windows XP Professional Service Pack 2 will restart in 5 minutes, this will give enough time for Windows to update the shell and to fully load before it's ready to restart! Please remain patient, the whole process is almost over."ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXITThanks i think vmware just takes longer to load explorer.
MCT Posted May 31, 2004 Posted May 31, 2004 5 mins 2 wait :| im using vmware, i have my shutdown command set for 30seconds, vmware takes about 15 seconds 2 fully load explorer, then another 15 it will shutdownheres mineshutdown.exe -r -r -t 30
WwTIPPYwW Posted June 2, 2004 Posted June 2, 2004 The problem is that you are cleaning up the files first....so the cleanup.cmd file gets deleted before making it to the next line....the shutdown one.Sooooooo, either keep your cleanup.cmd file in a different location or issue the shutdown first.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now