标题: 我把老大的无忧启动盘修改成了硬盘版 [打印本页] 作者: 飞飞猫 时间: 2004-10-29 10:30 标题: 我把老大的无忧启动盘修改成了硬盘版 修改 CHCDROM.BAT 文件 变成
:LOOP
IF %CDROM%==%1 GOTO CD
shift
GOTO LOOP
:CD
IF %1==Z GOTO find
shift
CDA %1 > NUL
IF errorlevel 1 GOTO CD
IF NOT EXIST %1:\BOOT\TW.EXE GOTO CD
SET CDROM=%1
GOTO END
:find
if exist c:\boot\DOS622.GHO set cdrom=c
if exist c:\boot\DOS622.GHO goto end
if exist d:\boot\DOS622.GHO set cdrom=d
if exist d:\boot\DOS622.GHO goto end
if exist e:\boot\DOS622.GHO set cdrom=e
if exist e:\boot\DOS622.GHO goto end
if exist f:\boot\DOS622.GHO set cdrom=f
if exist f:\boot\DOS622.GHO goto end
if exist g:\boot\DOS622.GHO set cdrom=g
if exist g:\boot\DOS622.GHO goto end
if exist h:\boot\DOS622.GHO set cdrom=h
if exist h:\boot\DOS622.GHO goto end
if exist i:\boot\DOS622.GHO set cdrom=i
if exist i:\boot\DOS622.GHO goto end
if exist j:\boot\DOS622.GHO set cdrom=j
if exist j:\boot\DOS622.GHO goto end
if exist k:\boot\DOS622.GHO set cdrom=k
if exist k:\boot\DOS622.GHO goto end
if exist a:\boot\DOS622.GHO set cdrom=a
if exist a:\boot\DOS622.GHO goto end
:END
在 autoexec.bat 中倒数第二行中加入
set path=
set path=%RAMD%:\;%RAMD%:\BAT;%CDROM%:\;%CDROM%:\UCDOS;%CDROM%:\BOOT;A:\;C:\;