DEVICEHIGH=himem.sys
DOS=HIGH,UMB,AUTO
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256
lastdrive=z
@ECHO On
rem 启动WinPE系统
rem 这个批处理由 神(_喌乄龍 制作,用于 龙行天下 U盘启动维护系统
rem blog:hi.baidu.com/353999772 mail:szl1123@163.com
rem 修改时请保留此信息
tw /np /nm /nw >nul
mouse.exe >nul
path a:\
set UPan=
set GFiles=boot\uboot.SZL
set ldrxpe=boot\pe\ldrxpe
set winpe=boot\pe\winpe.is_
set ntcom=boot\pe\ntcom
set pe=boot\pe\pe
set grub=boot\grub\grub.exe
cls
:MENU_
CLS
call w.bat box (+white on +blue) @autoexec.bat:MENU #2,5 >nul
if errorlevel 100 GOTO MENU_
if "%?%"=="4" goto R
if "%?%"=="3" goto DEVLOAD
if "%?%"=="2" goto NGRUB
if "%?%"=="1" goto LOADSYS
:MENU "启动 WinPE 维护系统 by szl1123"[x]
龙行天下 U盘启动维护系统
--------------------------------------------
[ &L. LOADSYS驱动USB启动PE ]
[ &N. 不加载驱动直接启动PE ]
[ &D. DEVLOAD驱动USB启动PE ]
[ &R. 重启计算机 ]
#? 秒后高亮选项自动运行
:DEVLOAD
devload USBASPI.SYS /v /e /norst
devload aspidisk.sys
GOTO :FIND
:LOADSYS
loadsys USBASPI.SYS /v /e /norst
loadsys aspidisk.sys
GOTO :FIND
:FIND
echo.
echo.
echo 正在设定U盘盘符:
if exist z:\%GFiles% set UPan=z:
IF not "%UPan%"=="" GOTO COPY
if exist y:\%GFiles% set UPan=y:
IF not "%UPan%"=="" GOTO COPY
if exist x:\%GFiles% set UPan=x:
IF not "%UPan%"=="" GOTO COPY
if exist w:\%GFiles% set UPan=w:
IF not "%UPan%"=="" GOTO COPY
if exist v:\%GFiles% set UPan=v:
IF not "%UPan%"=="" GOTO COPY
if exist u:\%GFiles% set UPan=u:
IF not "%UPan%"=="" GOTO COPY
if exist t:\%GFiles% set UPan=t:
IF not "%UPan%"=="" GOTO COPY
if exist s:\%GFiles% set UPan=s:
IF not "%UPan%"=="" GOTO COPY
if exist r:\%GFiles% set UPan=r:
IF not "%UPan%"=="" GOTO COPY
if exist q:\%GFiles% set UPan=q:
IF not "%UPan%"=="" GOTO COPY
if exist p:\%GFiles% set UPan=p:
IF not "%UPan%"=="" GOTO COPY
if exist o:\%GFiles% set UPan=o:
IF not "%UPan%"=="" GOTO COPY
if exist n:\%GFiles% set UPan=n:
IF not "%UPan%"=="" GOTO COPY
if exist m:\%GFiles% set UPan=m:
IF not "%UPan%"=="" GOTO COPY
if exist l:\%GFiles% set UPan=l:
IF not "%UPan%"=="" GOTO COPY
if exist k:\%GFiles% set UPan=k:
IF not "%UPan%"=="" GOTO COPY
if exist j:\%GFiles% set UPan=j:
IF not "%UPan%"=="" GOTO COPY
if exist i:\%GFiles% set UPan=i:
IF not "%UPan%"=="" GOTO COPY
if exist h:\%GFiles% set UPan=h:
IF not "%UPan%"=="" GOTO COPY
if exist g:\%GFiles% set UPan=g:
IF not "%UPan%"=="" GOTO COPY
if exist f:\%GFiles% set UPan=f:
IF not "%UPan%"=="" GOTO COPY
if exist e:\%GFiles% set UPan=e:
IF not "%UPan%"=="" GOTO COPY
if exist d:\%GFiles% set UPan=d:
IF not "%UPan%"=="" GOTO COPY
if exist c:\%GFiles% set UPan=c:
IF not "%UPan%"=="" GOTO COPY
if exist c:\%GFiles% set UPan=b:
IF not "%UPan%"=="" GOTO COPY
if exist c:\%GFiles% set UPan=a:
IF not "%UPan%"=="" GOTO COPY
GOTO ERROR
:COPY
md boot >nul
md boot\pe >nul
echo.
echo U盘盘符是 %upan%
echo.
echo 正在复制文件 :
if not exist %upan%\%grub% goto ERROR_
echo [ 5-1 ]: grub.exe
copy %upan%\%grub% a:\
if not exist %upan%\%ldrxpe% goto ERROR_
echo [ 5-2 ]: ldrxpe
copy %upan%\%ldrxpe% a:\%ldrxpe%
if not exist %upan%\%ntcom% goto ERROR_
echo [ 5-3 ]: ntcom
copy %upan%\%ntcom% a:\%ntcom%
if not exist %upan%\%pe% goto ERROR_
echo [ 5-4 ]: PE
copy %upan%\%pe% a:\%pe%
if not exist %upan%\%winpe% goto ERROR_
echo [ 5-5 ]: winpe.is_
copy %upan%\%winpe% a:\%winpe%
echo.
echo 文件复制完毕 : OK
GOTO GRUB
:GRUB
tw /q
loadsys /u aspidisk.sys
loadsys /u usbaspi.sys
grub.exe --config-file="rootnoverify (fd0);chainloader (fd0)/boot/pe/ldrxpe"
GOTO R
:NGRUB
echo.
echo 正在复制文件 :
if not exist %upan%\%grub% goto ERROR_
echo grub.exe
copy %upan%\%grub% a:\
echo.
echo 文件复制完毕 : OK
tw /q >nul
grub.exe --config-file="find --set-root /boot/uboot.SZL;chainloader /boot/pe/ldrxpe" >nul
GOTO R
:ERROR_
call w.bat box (+white on +blue) @autoexec.bat:ERROR #1,5 >nul
if errorlevel 100 goto R
if "%?%"=="1" goto R
:ERROR "全自动恢复系统 by szl1123"[x]
龙行天下 U盘启动维护系统
--------------------------------------------
错误:文件未找到, #? 秒后重新启动计算机
[ &R. 确定 ]
:R
r.com
6.66 KB, 下载次数: 111, 下载积分: 无忧币 -2
tw /q
loadsys /u aspidisk.sys
loadsys /u usbaspi.sys
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |