@rem ----------------------------------------------------------------------- @rem cleanup.cmd @rem @rem This file is executed in Win PE environment. @rem @rem ----------------------------------------------------------------------- @rem todo: @echo off set app_dir=%UserPart%\hp\bin\BurnBoot set section=default path=%path%;%recoverpart%\MiniNT\system32 del /q /f c:\MiniNT\system32\override.cmd %userpart%\hp\bin\sleep 10 if exist %recoverpart%\MiniNT\system32\shutdown.txt goto shutdown if exist %recoverpart%\MiniNT\system32\execute_odm_bat.txt goto ODM_Bat if exist %recoverpart%\MiniNT\system32\stay_in_recovery_partition.txt goto stay if exist %recoverpart%\MiniNT\system32\reimage.txt goto reimage :ODM_Bat @rem I don't expect the control will be back. @rem Do whatever necessary, and power down the system. @rem xcopy %userpart%\hp\bin\burnboot\odm.bat %recoverpart%\MiniNT\system32\ /y /v del /f /q %recoverpart%\MiniNT\system32\execute_odm_bat.txt if not exist %recoverpart%\MiniNT\system32\ODM.bat goto no_ODM.bat %recoverpart%\MiniNT\system32\ODM.bat goto end :no_ODM.bat %userpart%\hp\bin\MsgAction.exe "OK Burnboot finished... : Missing ODM.bat. Please press OK to shutdown" %recoverpart%\MiniNT\system32\shutdown.dll disk1 part2 goto end :stay @rem show message & wait until user clicks on OK. del /f /q %recoverpart%\MiniNT\system32\stay_in_recovery_partition.txt %userpart%\hp\bin\MsgAction.exe "OK Burnboot finished Successfully: Please press OK to shutdown" %recoverpart%\MiniNT\system32\shutdown.dll disk1 part2 goto end :shutdown del /f /q %recoverpart%\MiniNT\system32\shutdown.txt %app_dir%\MsgBoxPlus.exe %app_dir%\shutdown_msg.txt "Burnboot finished Successfully" 30 %recoverpart%\MiniNT\system32\shutdown.dll disk1 part2 goto end :reimage del /f /q %recoverpart%\MiniNT\system32\reimage.txt @rem %userpart%\sminst\start.exe /nextboot pushd %recoverpart%\MiniNT\system32 del reimage.flag if exist ReImage.log sRestore /log:ReImage.log goto end :end