『第
5 楼』:
有些东西讲起来实在不是一两句话就可以over的,还是自己去学习领会吧.
早期的时候看到以wuyou发行的叫menustar还是什么来着的就有一个不错的gui界面用来进行这样的操作.后来陆陆续续找了一些菜单软件感觉都不是很理想,直到看起来很不错的wbat,汗没时间学习这种高深的东东.后来发现wuyou出的一个发行版中有用menuitem/SUBMENU/%config%实现的菜单把我乐得,这个非常简单实用.
让我这菜鸟向大家简单说明一下标准的win98启动盘.标准的启动盘就io.sys msdos.sys command.com就能启动一个DOS环境,你可能还需要emm386.exe himem.sys ramdrive.sys来构建内存盘.这几个文件才276K就能构建一个基本的DOS环境.然后它自带的驱动能驱动ATAPI光驱把光驱识别为%CDROM%变量.好了这样你就可以在你的光盘上放置需要的外置程序.脱题了讲不下去了,自己去学习吧,哈哈内容哈多.
偶的网盘http://dato.ys168.com/启动盘目录有张boot.zip的启动盘大家可以去参考一下这个菜单的实现
这里有张模块化实现的DOS启动盘,http://www.nu2.nu/bootdisk/modboot/但是已经在我学会怎么做之后就没再学习领会过,也觉得它这种方式可能通用却不适合我使用.
autoexec.bat
@ECHO OFF
IF "%config%"=="QUICK" GOTO QUICK
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
IF NOT EXIST %RAMD%:\temp\NUL MD %RAMD%:\TEMP
set temp=%RAMD%:\TEMP
set tmp=%RAMD%:\TEMP
path=%RAMD%:\;%RAMD%:\boot;%RAMD%:\driver;%RAMD%:\temp;%RAMD%:\tw\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
%RAMD%:\extract /y /e /l %RAMD%:\boot a:\boot.cab > NUL
%RAMD%:\extract /y /e /l %RAMD%:\driver a:\driver.cab > NUL
LH %RAMD%:\DOSKEY
CLS
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
:: >>>>>>>>>>CONFIG<<<<<<<<<<
GOTO %CONFIG%
:: >>>>>>>>>>DOS选项<<<<<<<<<<
:NOEM
GOTO QUIT
:CD
LH %ramd%:\shsucdx.com /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
::
call fixit.bat
rem clean up environment variables
set CDPROB=
set CDROM=
GOTO QUIT
:NOCD
GOTO QUIT
:UP
GOTO QUIT
:: >>>>>>>>>>DOS选项<<<<<<<<<<
:: >>>>>>>>>>DISK菜单项<<<<<<<<<<
:diskgen
call diskgen.bat
GOTO QUICK
:kvfix
call kvfix.bat
GOTO QUICK
:fbdisk
call fbdisk
GOTO QUICK
:fdisk
call fdisk.bat
GOTO QUICK
:: >>>>>>>>>>DISK菜单项<<<<<<<<<<
:TW
call TW.bat
GOTO QUICK
:: >>>>>>>>>>DATA菜单项<<<<<<<<<<
:UNERASER
call UNERASER.bat
GOTO QUICK
:READNTFS
call READNTFS.bat
GOTO QUICK
:PASSWORD
call PASSWORD.bat
GOTO QUICK
:UNIFLASH
call uflash.bat
GOTO QUICK
:: >>>>>>>>>>DATA菜单项<<<<<<<<<<
:: >>>>>>>>>>CONFIG END<<<<<<<<<<
:QUIT
rem clean up environment variables
set LglDrv=
GOTO QUICK
:QUICK
echo.
echo Start computer with CD-ROM support.
WRITEXT 0+ 1 "Please " -f6 "type Instcd and press ENTER."
echo. ---------------------
config.sys
[menu]
SUBMENU=DOS,Start comuper. >>>
SUBMENU=DISK,Start Disk System Manager >>>>
SUBMENU=DATA,Start Data Recure >>
menuitem=TW,TW15 Chinese Support
menuitem=QUICK, Minimal Boot
menudefault=NOCD,30
menucolor=8,0
;>>>>>>>>>><<<<<<<<<<
;>>>>>>>>>>DOS菜单项<<<<<<<<<<
[DOS]
menuitem=NOEM,Start computer without EM386 support.
menuitem=CD,Start computer with CD-ROM support.
menuitem=NOCD,Start computer with EM386 support.
menuitem=UP,Start computer with UMBPCI [Real Mode]
SUBMENU=MENU,Main Menu <<<<
;>>>>>>>>>>DOS子菜单项<<<<<<<<<<
[NOEM]
device=himem.sys /testmem:off
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
[CD]
include=COMM
devicehigh=VIDE-CDD.SYS /D:mscd001
[NOCD]
include=COMM
[UP]
device=HIMEM.SYS /testmem:off
DEVICE=UMBPCI.SYS
DEVICE=LOWDMA.SYS
devicehigh=ramdrive.sys /E 2048
;>>>>>>>>>>DOS子菜单项结束<<<<<<<<<<
;>>>>>>>>>>DOS菜单项结束<<<<<<<<<<
;>>>>>>>>>>DISK菜单项<<<<<<<<<<
[DISK]
menuitem=diskgen,Disk Genius.
;menuitem=fbdisk,Fixed Bad Disk.
menuitem=fdisk,Winme fdisk.
;menuitem=kvfix,kvfix.
SUBMENU=MENU,Main Menu <<<<
[diskgen]
include=COMM
[fbdisk]
include=COMM
[fdisk]
include=COMM
[kvfix]
include=COMM
;>>>>>>>>>>DISK菜单项结束<<<<<<<<<<
[TW]
device=HIMEM.SYS /testmem:off
DEVICE=UMBPCI.SYS
DEVICE=LOWDMA.SYS
devicehigh=ramdrive.sys /E 2048
;>>>>>>>>>>DATA菜单项<<<<<<<<<<
[DATA]
;menuitem=UNERASER,UNERASER.
menuitem=READNTFS,READNTFS.
menuitem=PASSWORD,Change NT+ System Password.
menuitem=UNIFLASH,UNIFLASH.
SUBMENU=MENU,Main Menu <<<<
[UNERASER]
include=COMM
[READNTFS]
include=COMM
[PASSWORD]
include=COMM
[UNIFLASH]
device=HIMEM.SYS /testmem:off
;在Via apollo 133 pro上非常的遭糕
;DEVICE=UMBPCI.SYS
;DEVICE=LOWDMA.SYS
devicehigh=ramdrive.sys /E 2048
;>>>>>>>>>>DATA菜单项结束<<<<<<<<<<
[QUICK]
;>>>>>>>>>>共用属性<<<<<<<<<<
[COMM]
device=HIMEM.SYS /testmem:off
DEVICE=EMM386.EXE NOEMS
devicehigh=ramdrive.sys /E 2048
files=30
buffers=60
dos=high,umb
stacks=9,256
lastdrive=z
[COMMON]
|