中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 20:37
47,812 topics / 349,912 posts / today 2 new / 48,264 members
DOS汉化世界 & 中文系统 (中文化室) » Help!求助  Autoexec.bat problem!!
Printable Version  2,083 / 6
Floor1 config Posted 2006-02-19 21:54
新手上路 Posts 5 Credits 18
May I ask the experts
How should the config file made with the ConMenu.sys menu editor and its corresponding autoexec.bat be written??
Floor2 本是 Posted 2006-02-20 10:05
银牌会员 Posts 790 Credits 2,227
Post your CONFIG.SYS to proceed!
Floor3 config Posted 2006-02-20 17:41
新手上路 Posts 5 Credits 18
For example, in the config file that does not load ConMenu.sys

[MENU]
menuitem=WIN98,Windows
[WIN98]
In autoexec.bat, you can correspond to it and select to carry out the next step of operations with the commands under win98

But in the config file that has loaded ConMenu.sys

rem cm0=[A. win98 Chinese
rem include0=1
rem cm0=]A
How to correspond and select in autoexec.bat
Floor4 本是 Posted 2006-02-20 20:51
银牌会员 Posts 790 Credits 2,227
In CONMENU.TXT in CONMENUxxx.RAR, it is stated: "Return parameters A, B... P from %cm0%, %cm1%...", that is, in AUTOEXEC.BAT, you can use environment variables %cm0%, %cm1%,... to return the choices you made on the menu in CONFIG.SYS. For example:

if '%cm0%'=='A' goto lbl0A
Floor5 config Posted 2006-02-23 16:40
新手上路 Posts 5 Credits 18
Thanks to "本是" for the help!!
By the way, in your reply
if '%cm0%'=='A' goto lbl0A
should be double quotes
Floor6 本是 Posted 2006-02-23 16:47
银牌会员 Posts 790 Credits 2,227
The following is also okay:
if %cm0%.==A. goto lbl0A
It is to prevent the string between %...% from being an empty string.
Floor7 config Posted 2006-02-23 17:03
新手上路 Posts 5 Credits 18
Thanks
Learned another trick
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023