ramdrive及CDROM盘符查找
[这个贴子最后由guest01在 2003/09/20 09:06am 第 1 次编辑]
比如,pqmagic 的文件放在 CDROM 的\dos\pqmagic\ 下,模拟软盘启动后要将它拷贝到 ramdrive 执行,config.sys 可以这样写:
device=\command\himem.sys /testmem:off
devicehigh=\command\cd-rom.sys /D:mscd001
devicehigh=\command\ramdrive.sys /E 4096
files=20
buffers=20,0
dos=high,umb
stacks=9,256
lastdrive=z
autoexec.bat 中这样写:
@ECHO OFF
path=a:\;a:\command
lh \command\DOSKEY.COM
lh \command\AMOUSE.COM
LH \command\MSCDEX.EXE /D:mscd001
prompt $p$g
\command\SMARTDRV.EXE 2048 1024
\command\findramd > nul
set temp=%ramdrive%\temp
set tmp=%ramdrive%\temp
copy a:\command.com %ramdrive%\ > nul
set comspec=%ramdrive%\command.com
set path=a:\;a:\command;%ramdrive%
\command\FINDCD > nul
copy %CDROM%\dos\pqmagic\*.* %ramdrive% > nul
%ramdrive%
pqmagic
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
如果你有2个 CDROM 只需将光盘放入第一个 CDROM 即可,在用光盘启动、安装、修复时,你用不到两个光驱吧。