China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 07:31
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Help!求助  Autoexec.bat problem!! View 1,975 Replies 6
Original Poster Posted 2006-02-19 21:54 ·  中国 陕西 汉中 电信
新手上路
Credits 18
Posts 5
Joined 2005-10-19 00:23
20-year member
UID 43691
Status Offline
May I ask the experts
How should the config file made with the ConMenu.sys menu editor and its corresponding autoexec.bat be written??
Floor 2 Posted 2006-02-20 10:05 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Post your CONFIG.SYS to proceed!
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 3 Posted 2006-02-20 17:41 ·  中国 陕西 汉中 电信
新手上路
Credits 18
Posts 5
Joined 2005-10-19 00:23
20-year member
UID 43691
Status Offline
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
Floor 4 Posted 2006-02-20 20:51 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
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
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 5 Posted 2006-02-23 16:40 ·  中国 陕西 汉中 电信
新手上路
Credits 18
Posts 5
Joined 2005-10-19 00:23
20-year member
UID 43691
Status Offline
Thanks to "本是" for the help!!
By the way, in your reply
if '%cm0%'=='A' goto lbl0A
should be double quotes
Floor 6 Posted 2006-02-23 16:47 ·  中国 江苏 苏州 吴中区 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
The following is also okay:
if %cm0%.==A. goto lbl0A
It is to prevent the string between %...% from being an empty string.
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 7 Posted 2006-02-23 17:03 ·  中国 陕西 汉中 电信
新手上路
Credits 18
Posts 5
Joined 2005-10-19 00:23
20-year member
UID 43691
Status Offline
Thanks
Learned another trick
Forum Jump: