|
2#
楼主 |
发表于 2009-7-7 18:34:05
|
只看该作者
相关批处理内容如下:
*********** CONFIG.SYS *************
[MENU]
MENUITEM=USBASPI,USB With USBASPI.SYS
MENUITEM=OmniFS,USB With OmniFS
MENUDEFAULT=USBASPI,10
MENUCOLOR=7,0
[COMMON]
DEVICE=HIMEM.SYS /TESTMEM:OFF
REM DEVICE=EMM386.EXE RAM
DOS=UMB,HIGH
FILES=60
BUFFERS=20
STACKS=9,256
LASTDRIVE=Z
[USBASPI]
DEVICEHIGH=USBASPI.SYS /E /R /NORST
DEVICEHIGH=USBCD.SYS /D:USBCD
DEVICEHIGH=ASPIDISK.SYS
[OmniFS]
********** AUTOEXEC.BAT ******************
@ECHO OFF
PROMPT $P$G
SET TMP=A:\
SET TEMP=A:\
PATH=A:\;A:\GRUB
SET FLAG=GRUB\GRUB.EXE
IF "%CONFIG%"=="USBASPI" GOTO USBASPI
IF "%CONFIG%"=="OmniFS" GOTO OmniFS
:USBASPI
SHSUCDX.COM /D:USBCD
ECHO Find USB Driver.....
ECHO.
FOR %%I IN (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) DO IF EXIST %%I:\%FLAG% PEU.BAT %%I:
ECHO !!! No USB Disk !!!
GOTO QUIT
:OmniFS
CALL PEO.BAT
GOTO QUIT
:QUIT
********** PEU.BAT ************
@ECHO OFF
ECHO Copy Files, Please Wait ....
SET UPAN=%1
A:
CD\
MD GRUB
CD\GRUB
COPY %UPAN%\GRUB\WSIF
COPY %UPAN%\GRUB\LDRXPE
COPY %UPAN%\GRUB\NTD.COM
COPY %UPAN%\GRUB\GRUB.EXE
COPY %UPAN%\GRUB\WINPE.IS_
IF NOT EXIST A:\GRUB\GRUB.EXE GOTO ERR
LOADSYS /U USBCD.SYS
LOADSYS /U USBASPI.SYS
GRUB.EXE --config-file="rootnoverify (fd0);chainloader (fd0)/GRUB/LDRXPE"
GOTO EXT
:ERR
ECHO Files Copy Error!
:EXT
********** PEO.BAT ************
@ECHO OFF
ECHO Copy Files, Please Wait ....
A:
CD\
MD GRUB
CD\GRUB
ECHO COPY UD-PE:\GRUB\WSIF A:\GRUB\WSIF>OFS.TXT
ECHO COPY UD-PE:\GRUB\LDRXPE A:\GRUB\LDRXPE>>OFS.TXT
ECHO COPY UD-PE:\GRUB\NTD.COM A:\GRUB\NTD.COM>>OFS.TXT
ECHO COPY UD-PE:\GRUB\GRUB.EXE A:\GRUB\GRUB.EXE>>OFS.TXT
ECHO COPY UD-PE:\GRUB\WINPE.IS_ A:\GRUB\WINPE.IS_>>OFS.TXT
OMNIFS -FORCEUSB SCRIPT OFS.TXT
REM DEL OFS.TXT>NUL
IF NOT EXIST A:\GRUB\GRUB.EXE GOTO ERR
GRUB.EXE --config-file="rootnoverify (fd0);chainloader (fd0)/GRUB/LDRXPE"
GOTO EXT
:ERR
ECHO Files Copy Error!
:EXT
[ 本帖最后由 xianglang 于 2010-4-22 09:28 编辑 ] |
|