无忧启动论坛

标题: 关于DOS的一个问题 [打印本页]

作者: 钉子_    时间: 2007-7-16 14:26
标题: 关于DOS的一个问题
各位大哥:
       这几天在做个启动盘,想实现下面的功能

      1 菜单一
      2 菜单二
      3 菜单三

     选择一则跳转到一的代码区,请问该怎么实现


     SET在DOS6.22下无法识别的,CHOICE也不怎么好用,不知道各位大哥有没有什么软件可以建立DOS6.22下可以建立这样对话式的菜单,菜单只用纯文字就可以了
作者: netwinxp    时间: 2007-7-16 17:59
下面是98原启动盘的内容,622和它差不多,自己慢慢学
1、config.sys内容
[menu]
menuitem=CD, Start computer with CD-ROM support.
menuitem=NOCD, Start computer without CD-ROM support.
menuitem=HELP, View the Help file.
menudefault=CD,30
menucolor=7,0

[CD]
device=himem.sys /testmem: off
device=oakcdrom.sys /D:mscd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001

[NOCD]
device=himem.sys /testmem: off

[HELP]
device=himem.sys /testmem: off

[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
2、autoexec.bat内容
@echo off
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%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > nul
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > nul
copy readme.txt %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
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.

if "%config%"=="NOCD" goto quit
if "%config%"=="HELP" goto help
lh %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
goto quit

:help
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
goto quit

:quit
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
作者: terse    时间: 2007-7-17 12:20
试过WBAT吗?你试一下




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3