|
修改 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:\;
就修改了二处可以实现 无忧老大的光盘版 (无忧启动) 到硬盘版的.
只是我有点不明白的是. 启动后,那个在复制到 临时的 虚拟盘 RAMDISK 会出现,
copy get.exe f:\
write proctet drive F
说是写保护.不过按一下 ABORT 就没事的.
这可能本身是原版启动盘 windows 98se 的一个错误. 他那个 虚拟软盘 如果加载了
emm386.exe noems 也同样出现错误的.
还是 xmsdsk.exe 好用啊,不会出现错误.
不过有时候 我如果加载了过多的驱动 xmsdsk 所加载的内存虚拟盘也会出现错误的.
但是在配置文件 config.sys 中不加入上位内存扩展 emm386.exe noems 则 xmsdsk一切正常. |
|