|
在CONFIG里面加载驱动再运行程序就不会出错,只要在AUTOEXEC.BAT里面用LOADSYS和DEVLOAD加载驱动都会出现下图的情况
希望版主不要移动本贴,虽然这是是讨论DOS但是这也是在讨论运行PE前加载USB驱动的问题,
我做了一个30M的IMG,成功用LOADSYS和DEVLOAD成功加载USB驱动后是没有问题的,PE所需的文件也可以全部复制完,但是在运行GRUB的时候却提示错误,跟上图是一样的提示。
还有用 LOADSYS 加载的驱动可以用 /U 来卸载,但是用 DEVLOAD 加载的驱动用什么参数来卸载呢?我也下载过别的 运行PE前加载USB驱动 的一些IMG但是里面用 DEVLOAD 加载驱动启动PE的都没有见卸载的相关参数。
请各位前辈指教一下
CONFIG.SYS
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
[ 本帖最后由 szl1990 于 2009-5-8 19:09 编辑 ] |
|