|
dato
高级用户
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『楼 主』:
(已结)请问menuitem有特殊的要求吗
[DATA]
menuitem=READNTFS,READNTFS.
menuitem=PASSWORD,Change NT+ System Password.
menuitem=UNIFLASH,UNIFLASH.
SUBMENU=MENU,Main Menu <<<<
改为下面的,看起来也没有什么吗,难道小小的DOS也会对单词敏感吗,试图改为123456凑足6位数也无法解决,真是见鬼。
[DATA]
menuitem=IFS,Paragon DOS IFS driver.
menuitem=PASSWORD,Change NT+ System Password.
menuitem=UNIFLASH,UNIFLASH.
SUBMENU=MENU,Main Menu <<<<
结果老是提示
Microsoft MS-DOS 7.1 Startup Menu
屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯
1. Start comuper. >>>
2. Start Disk System Manager >>>>
3. Start Data Recure >>
4. TW15 Chinese Support
5. Minimal Boot
Enter a choice: 3
There is an error in your CONFIG.SYS file on line 75
Press any key to continue . . .
[ Last edited by willsort on 2005-9-8 at 11:19 ]
|
http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2005-9-6 23:54 |
|
|
willsort
元老会员
Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第
2 楼』:
Re dato:
你给出的CONFIG.SYS信息不全,且改动之前的内容也没有给出,比较难以判断。错误信息指出的75行我猜测应该是SUMMENU一行,其MENU项应该是试图指向主菜单,这是DOS语法所不允许的,子菜单必须是新建菜单项,不能回指。
如果想在启动过程中返回主菜单,只要按Backspace即可,不需要也不能通过子菜单跳转。
---------- Edited by willsort ----------
红色字体所示内容,经实际验证乃错误言论,敬请注意!
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-9-8 at 08:36 ]
|
※ Batchinger 致 Bat Fans:请访问 [讨论]批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2005-9-7 17:44 |
|
|
dato
高级用户
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第
3 楼』:
奇怪啊,原先红色的位置为
menuitem=READNTFS,READNTFS.
后来使用ifs了,结果只要将readntfs改名就会这样。我想这个名字难道会关连autoexec.bat吗,错误出得让人有点莫名其妙
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 /testmemff
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 /testmemff
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 /testmemff
DEVICE=UMBPCI.SYS
DEVICE=LOWDMA.SYS
devicehigh=ramdrive.sys /E 2048
;>>>>>>>>>>DATA菜单项<<<<<<<<<<
[DATA]
;menuitem=UNERASER,UNERASER.
menuitem=READNTFS,Paragon DOS IFS driver.
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 /testmemff
;在Via apollo 133 pro上非常的遭糕
;DEVICE=UMBPCI.SYS
;DEVICE=LOWDMA.SYS
devicehigh=ramdrive.sys /E 2048
;>>>>>>>>>>DATA菜单项结束<<<<<<<<<<
[QUICK]
;>>>>>>>>>>共用属性<<<<<<<<<<
[COMM]
device=HIMEM.SYS /testmemff
DEVICE=EMM386.EXE NOEMS
devicehigh=ramdrive.sys /E 2048
files=30
buffers=60
dos=high,umb
stacks=9,256
lastdrive=z
[COMMON]
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 NTFS.bat
GOTO QUICK
ASSWORD
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.
|
http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2005-9-7 21:36 |
|
|
dato
高级用户
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第
4 楼』:
晕,这个问题真是莫名其妙。就修改了一下就怎么会出这种问题,编辑器用的是editplus2。上传了一张new_err.zip在http://dato.ys168.com
Microsoft MS-DOS 7.1 Startup Menu
屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯
1. Start comuper. >>>
2. Start Disk System Manager >>>>
3. Start Data Recure >>
4. TW15 Chinese Support
5. Minimal Boot
Enter a choice: 3
一旦选择3.start data recure就会提示
There is an error in your CONFIG.SYS file on line 76
Press any key to continue . . .
正在比较文件 autoexec.bat 和 AUTOEXEC1.BAT
***** autoexec.bat
:READNTFS
call READNTFS.bat
GOTO QUICK
***** AUTOEXEC1.BAT
:IFS
call IFS.bat
GOTO QUICK
*****
正在比较文件 config.sys.txt 和 CONFIG1.SYS.TXT
***** config.sys.txt
;menuitem=UNERASER,UNERASER.
menuitem=READNTFS,READNTFS.
menuitem=PASSWORD,Change NT+ System Password.
***** CONFIG1.SYS.TXT
;menuitem=UNERASER,UNERASER.
menuitem=IFS,IFS.
menuitem=PASSWORD,Change NT+ System Password.
*****
|
http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2005-9-7 22:01 |
|
|
willsort
元老会员
Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第
5 楼』:
Re dato:
问题在于你没有将下面的 [READNTFS] 菜单项的名字改为 [IFS] ,改过之后 CONFIG.SYS 就可以正常启动了。不过在后面的 AUTOEXEC.BAT 执行过程中又出现了问题,应该是没有 IFS.BAT 的原因。
另外,我在2楼所说的子菜单不能回指主菜单经过实际测试是错误言论,当时我并没有进行测试,只是凭臆想做出判断。在此更正且向 dato 兄表示道歉!也敬请其它读者谅解!
|
※ Batchinger 致 Bat Fans:请访问 [讨论]批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2005-9-8 08:31 |
|
|
dato
高级用户
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第
6 楼』:
谢谢版主哦,
正在比较文件 config.sys.txt 和 CONFIG1.SYS.TXT
***** config.sys.txt
;menuitem=UNERASER,UNERASER.
menuitem=READNTFS,READNTFS.
menuitem=PASSWORD,Change NT+ System Password.
***** CONFIG1.SYS.TXT
;menuitem=UNERASER,UNERASER.
menuitem=IFS,Paragon DOS IFS driver.
menuitem=PASSWORD,Change NT+ System Password.
*****
***** config.sys.txt
[READNTFS]
include=COMM
***** CONFIG1.SYS.TXT
[IFS]
include=COMM
*****
正在比较文件 autoexec.bat 和 AUTOEXEC1.BAT
***** autoexec.bat
:READNTFS
call READNTFS.bat
GOTO QUICK
***** AUTOEXEC1.BAT
:IFS
call NTFS.bat
GOTO QUICK
*****
|
http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2005-9-8 10:43 |
|
|