『楼 主』:
改造DOS启动盘出现三个问题,贴上相关文件求高手
我从 http://ms-dos7.hit.bg/ 下载了两个DOS启动盘,一个是标准启动盘,一个是本坛站长Wengier的 Super MS-DOS Boot Disk 。
我想用于 PE 系统,启动 GHOST 、DISKPART 和 GDISK ,同时想保留并回味一下DOS强大的扩展功能。
功能而言当然是Super MS-DOS Boot Disk 合我心意,可是现在不是DOS年代,不需要那么多个启动对话框,只想要一个强大的DOS环境就够了,启动越直接越好。
我能把LOGO去掉,能把对话框减少,可是就没办法把GRUB去掉,把timeout设为0还是显得多余。
我想用标准DOS启动盘添加和替换其中大部分的功能组件,改造成类似于Super MS-DOS Disk 那样。可是启动命令有些改得不是很正确,在虚拟机上运行出现了三个不会解决的问题,如截图:
AUTOEXEC.BAT
@ECHO OFF
LH KILLER
LH ZENO /Q
LH DOSKEY
TM /F
PAUSE
LH CTMOUSE
ECHO.
ECHO Now trying to load the hard disk cache to speed the drives up ...
:NOHD
LH SHSUCDX /D:?IDE-CD /D:?USB-CD
XMSDSK 4096 /Y
ECHO Now setting up the RAM disk...
IF %RAMDRIVE%#==# GOTO NORAM
IF NOT EXIST %RAMDRIVE%\TEMP\NUL MD %RAMDRIVE%\TEMP
SET TMP=%RAMDRIVE%\TEMP
SET TEMP=%RAMDRIVE%\TEMP
IF NOT EXIST %RAMDRIVE%\SYSTEM\NUL MD %RAMDRIVE%\SYSTEM
COPY COMMAND.COM %RAMDRIVE%\SYSTEM>NUL
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM ECHO Warning: Failed to copy COMMAND.COM!
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM GOTO COPYERR
SET COMSPEC=%RAMDRIVE%\SYSTEM\COMMAND.COM
ECHO The necessary tools have been successfully loaded to drive %RAMDRIVE%.
:COPYERR
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
IF %SM%#==Y# LH SMARTDRV 4096 2048 /X
GOTO NEXT
:NORAM
ECHO Warning: Can't create RAM disk!
IF %SM%#==Y# ECHO Can't load SMARTDRV!
SET COMSPEC=A:\COMMAND.COM
:MENU
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
PATH=%PATH%;C:.;A:.;..
LH ESCAPE
LH MOUSCLIP /M
LH DOSLFN /C- /Z:CP936UNI.TBL
IF "%CONFIG%"=="M1" GOTO GHOST
IF "%CONFIG%"=="M2" GOTO GDISK
IF "%CONFIG%"=="M3" GOTO DOS1
IF "%CONFIG%"=="M4" GOTO DOS2
FINDCD /Q
ECHO.
IF NOT %CDROM%#==# ECHO For accessing CD/DVD drive, use the drive letter %CDROM%(1st).
IF NOT %RAMDRIVE%#==# ECHO For accessing RAM drive, use the drive letter %RAMDRIVE%.
IF NOT %CONFIG%#==M3# IF NOT %CONFIG%#==M4# ECHO For accessing NTFS drives(if any), type NTFSDOS on the command line.
ECHO At any time, you can press F12 key to return to DOS, or use the mouse.
BREAK ON
LFNFOR ON
PAUSE
IF %RAMDRIVE%#==# GOTO QUIT
:LH
SET DIF=
LH VC
:GHOST
GHOST.EXE
PAUSE
GOTO QUIT
:GDISK
GDISK.EXE
GOTO QUIT
:DOS1
GOTO QUIT
:DOS2
GOTO QUIT
:QUIT
ECHO.
REM CLEAN UP ENVIRONMENT VARIABLES
SET CDROM=
SET LGLDRV=
CONFIG.SYS
[MENU]
MENUITEM=M1,GHOST [Real Mode]
MENUITEM=M2,GDISK [Real Mode]
MENUITEM=M3,DOS [Real Mode]
MENUITEM=M4,DOS [Protected Mode]
MENUDEFAULT=M1,20
[M1]
DEVICE=HIMEM.SYS
DEVICE=UMBPCI.SYS
DEVICE=LOWDMA.SYS
INCLUDE CD
[M2]
INCLUDE M1
[M3]
INCLUDE M1
INCLUDE USB
[M4]
DEVICE=HIMEM.SYS
DEVICE=EMM386.EXE NOEMS
INCLUDE CD
INCLUDE USB
[USB]
DEVICE=USBASPI.SYS /R /V /NORST
DEVICEHIGH=DI1000DD.SYS
DEVICEHIGH=USBCD.SYS /D:USB-CD
DEVICE=ECHO.SYS
[CD]
DEVICEHIGH=UDMA.SYS
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD
[COMMON]
SHELL=COMMAND.COM /P /E:640
SET TMP=C:\
SET TEMP=C:\
DOS=HIGH,UMB,AUTO
NUMLOCK=ON
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256
我修改的 DOS.IMG 内所有文件:
Quote: | ANSI.COM
ASC.COM
AUTOEXEC.BAT
CDPLAY.COM
COMMAND.COM
CONFIG.SYS
CP936UNI.TBL
CSOUND.COM
CTMOUSE.EXE
CWSDPMI.EXE
DELTREE.COM
DEVICE.COM
DI1000DD.SYS
DOSKEY.COM
DOSLFN.COM
DRVTYPES.EXE
EMM386.EXE
ESCAPE.EXE
EXTRACT.EXE
FDISK.EXE
FIND.COM
FORMAT.COM
HIMEM.SYS
IFSHLP.SYS
IO.SYS
KILLER.EXE
LOCATE.COM
LOWDMA.SYS
MCD.EXE
MEM.EXE
MODE.COM
MOUSCLIP.EXE
MSDOS.SYS
PC-EXT2X.OVL
PC-WNERR.OVL
PCCACHE.COM
PERUSE.COM
QV1.EXE
RAMFD.EXE
SHSUCDX.EXE
SHUTDOWN.COM
SYS.COM
TM.EXE
UDMA.SYS
UMBPCI.SYS
UNDISK.EXE
USBASPI.SYS
USBCD.SYS
VIDE-CDD.SYS
XFIND.COM
XMSDSK.EXE
XZL.COM
ZENO.EXE
1ist.cmd
1ist.txt
ANSI.COM
ASC.COM
AUTOEXEC.BAT
CDPLAY.COM
COMMAND.COM
CONFIG.SYS
CP936UNI.TBL
CSOUND.COM
CTMOUSE.EXE
CWSDPMI.EXE
DELTREE.COM
DEVICE.COM
DI1000DD.SYS
DOSKEY.COM
DOSLFN.COM
DRVTYPES.EXE
EMM386.EXE
ESCAPE.EXE
EXTRACT.EXE
FDISK.EXE
FIND.COM
FORMAT.COM
HIMEM.SYS
IFSHLP.SYS
IO.SYS
KILLER.EXE
LOCATE.COM
LOWDMA.SYS
MCD.EXE
MEM.EXE
MODE.COM
MOUSCLIP.EXE
MSDOS.SYS
PC-EXT2X.OVL
PC-WNERR.OVL
PCCACHE.COM
PERUSE.COM
QV1.EXE
RAMFD.EXE
SHSUCDX.EXE
SHUTDOWN.COM
SYS.COM
TM.EXE
UDMA.SYS
UMBPCI.SYS
UNDISK.EXE
USBASPI.SYS
USBCD.SYS
VIDE-CDD.SYS
XFIND.COM
XMSDSK.EXE
XZL.COM
ZENO.EXE |
|
谢谢!!
|