olegigor5555
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору ::by JexChan QQ:527104427 Date:2013.04.21 checkrange 20111213:-1 read 0x8278 > nul || clear && set err=$[1106]You should use $[1103]grub4dos-0.4.5b-2011-12-13 or above.\n\n && call :ERR && exit set err= && call Fn.6 checkrange 0x21 read 0x8280 > nul && pxe keep ::加载续尾文件 map --mem=0x20000 %~f0 (rd) cat --locate=\x1f\x8b --number=1 (rd)+1 > nul calc *0x82d8=*0x82d8-%?% > nul calc *0x82d0=*0x82d0+%?% > nul map --mem (rd)+1 (0) map --rehook root (0) if exist ()/NTBOOT || find --set-root /NTBOOT || goto :ERR set NTBOOT=()/NTBOOT if "%~1"=="" && goto :L1 if /i "%~1"=="-b" && goto :L2 if /i "%~1"=="-d" && goto :L3 if /i "%~1"=="-c" && goto :L3 :L1 command %NTBOOT% HD || goto :ERR exit :L2 if "%~2"=="" && goto :ERR if "%~nx2"=="" && goto :ERR command %NTBOOT% NT6=%~pnx2 || goto :ERR exit :L3 if "%~2"=="" && goto :ERR if "%~nx2"=="" && goto :ERR insmod %NTBOOT%.MOD/NTBOOT.MOD > nul || goto :ERR find --set-root --devices=uh %~pnx2 || set err=%~pnx2 NOT FOUND. && goto :ERR diskid2 () --omnifs | set n= root (0) cat --locatei="\x24\x24\x24\x24\x24\x24" --replace="%n%%%~pnx2\0\0\0\0\0\0" ()/vhd1.bat || goto :ERR cat --locatei=/ --replace=\\ ()/vhd1.bat || goto :ERR if /i "%~1"=="-d" && goto :BOOT if "%~3"=="" && goto :ERR if "%~nx3"=="" && goto :ERR set m=0 && set p=%~3 && call :Loop cat --locatei="\x23\x23\x23\x23\x23\x23" --replace="%n%%%~pnx3\0\0\0\0\0\0" ()/vhd1.bat || goto :ERR cat --locatei="\x2E\x2E\x2E\x2E\x2E\x2E" --replace="%m%\0\0\0\0\0\0" ()/vhd1.bat || goto :ERR cat --locatei=/ --replace=\\ ()/vhd1.bat || goto :ERR cat --locatei="\x23\x23\x23\x23\x23\x23" --replace="%~pnx3\0\0\0\0\0\0" ()/menu.lst || goto :ERR :BOOT chainloader +1 boot exit ::计算目录层数 :Loop if "%p%"=="" && exit call :Loop_1 "%p%" goto :Loop :Loop_1 set p=%~p1 if "%p%"=="/" && set p= && exit set p=%p:~0,-1% find --devices=uh %p% && set /a m=%m%+1 exit :ERR clear && echo -e \n $[1104]Error ,%err%$[1106]Press any key to reboot... pause reboot |