@echo off
cls
if exist %SystemDrive%\boot.old (goto old) else (goto new)
ld
cls & echo. & echo.
echo old boot have been found, press "recover" to recover it and close app,
echo OR, press enter to continue !!!
echo.
set xyz=ff
set /p xyz= what u want to do ?!
if "%xyz%"=="recover" (
attrib %SystemDrive%\boot.ini -r -a -s -h
copy /y %SystemDrive%\boot.old %SystemDrive%\boot.ini
del /f /a /q %SystemDrive%\boot.old
del /q %windir%\system32\newboot.exe
attrib %SystemDrive%\boot.ini +r +a +s +h
goto end)
:new
cls & echo. & echo. & echo How much memory u have ? & echo.
if %NUMBER_OF_PROCESSORS%==1 (
echo *S* 3 GB IS TOO much for me
echo *S3* 3 GB is nothing for me, i got a lot
echo.) else (
echo *M* 3 GB IS TOO much for me
echo *M3* 3 GB is nothing for me, i got a lot)
echo.
set xyz=ff
set /p xyz= what type of kernel u have ?!
if "%xyz%"=="S" (set kernel=ntoskrnl.exe & goto new2)
if "%xyz%"=="S3" (set kernel=ntkrnlpa.exe & goto new2)
if "%xyz%"=="M" (set kernel=ntkrnlmp.exe & goto new2)
if "%xyz%"=="M3" (set kernel=ntkrpamp.exe & goto new2)
goto new
:new2
attrib %SystemDrive%\boot.ini -r -a -s -h
copy /y %SystemDrive%\boot.ini %SystemDrive%\boot.old
copy /y %kernel% %windir%\system32\NewBoot.exe
bootcfg /copy /D "Vista boot" /ID 1
bootcfg /RAW "/Kernel=NewBoot.exe" /A /ID 2
bootcfg /Timeout 4
bootcfg /Default /ID 2
attrib %SystemDrive%\boot.ini +r +a +s +h
goto end
:end]