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-24 23:39
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » ConfigP.Mnu v1.01 Setting Multiple Environment Variables Issue View 1,817 Replies 6
Original Poster Posted 2006-10-23 07:46 ·  中国 江西 鹰潭 电信
中级用户
★★
Credits 244
Posts 92
Joined 2006-05-13 21:24
20-year member
UID 55477
Status Offline
### config.sys 文件内容
device=himem.sys
device=acios.exe
device=configp.mnu /s

rem 0nestmenu=e,u,Preferred Menu
rem color=17,c
rem time=30,Remaining Time
rem endnote=1,Press ↑ ↓ keys or corresponding letter keys to select items
rem endnote=
rem endnote=1,Press → key to expand menu, press ← key to return to menu
rem item=1=Backup/Restore

rem 1RadioMenu=,,Partition Backup
rem defaultitem=1=Backup C drive
rem item=2=Backup D drive
rem item=3=Backup E drive
rem item=4=Backup F drive
rem item=5=Backup G drive
rem item=6=Backup H drive
rem item=
rem item=
rem item=7=Restore C drive
rem item=8=Restore D drive
rem item=9=Restore E drive
rem item=10=Restore F drive
rem item=11=Restore G drive
rem item=12=Restore H drive



rem block=1
set config=backc
rem block=2
set config=backd
rem block=3
set config=backe
rem block=4
set config=backf
rem block=5
set config=backg
rem block=6
set config=backh
rem block=7
set config=dumpc
rem block=8
set config=dumpd
rem block=9
set config=dumpe
rem block=10
set config=dumpf
rem block=11
set config=dumpg
rem block=12
set config=dumph
rem block=end

fcbshigh=4,0
fileshigh=30
buffershigh=30,0
lastdrivehigh=32
stackshigh=9,256

device=ConfigP.Mnu /u

_____________________________________
### auexec.bat 文件内容

IF "%config%"=="backc" GOTO backc
IF "%config%"=="backd" goto backd
IF "%config%"=="backe" goto backe
IF "%config%"=="backf" goto backf
IF "%config%"=="backg" goto backg
IF "%config%"=="backh" goto backh
IF "%config%"=="dumpc" goto dumpc
IF "%config%"=="dumpd" goto dumpd
IF "%config%"=="dumpe" goto dumpe
IF "%config%"=="dumpf" goto dumpf
IF "%config%"=="dumpg" goto dumpg
IF "%config%"=="dumph" goto dumph

:backc
...

:backd
...

:backe
...

:backf
...

:backg
...

:backh
...

:dumpc
...

:dumpd
...

:dumpe
...

:dumpf
...

:dumpg
...

:dumph
...



Only can jump to the first block,
IF "%config%"=="backc" GOTO backc
This is okay, but others are not.
Floor 2 Posted 2006-10-23 07:48 ·  中国 江西 鹰潭 电信
中级用户
★★
Credits 244
Posts 92
Joined 2006-05-13 21:24
20-year member
UID 55477
Status Offline
yaya, I need you to explain it again. :P
Floor 3 Posted 2006-10-23 15:27 ·  中国 辽宁 沈阳 电信
新手上路
Credits 13
Posts 6
Joined 2006-10-18 14:07
19-year member
UID 66434
Gender Female
Status Offline
Got it! Thanks to the poster!!
Floor 4 Posted 2006-10-26 06:31 ·  中国 江西 鹰潭 电信
中级用户
★★
Credits 244
Posts 92
Joined 2006-05-13 21:24
20-year member
UID 55477
Status Offline
yaya, help solve this. How to do this
Floor 5 Posted 2006-10-26 06:57 ·  中国 江西 鹰潭 电信
中级用户
★★
Credits 244
Posts 92
Joined 2006-05-13 21:24
20-year member
UID 55477
Status Offline
Got it, variable names can't be the same
Floor 6 Posted 2006-10-26 07:07 ·  中国 山西 太原 联通
银牌会员
★★★
Credits 1,009
Posts 353
Joined 2003-09-04 00:00
22-year member
UID 9419
Gender Male
Status Offline
1.block should be incrementally numbered starting from 0
2.rem item=6=Backup H drive
rem item=
rem item=
rem item=7=Restore C drive
should be
rem item=6=Backup H drive
rem item==
rem item==
rem item=7=Restore C drive
It is best not to add the two middle lines. If you have to add them, insert "gotu xxxx" between the two lines:
IF "%config%"=="dumph" goto dumph

:backc
Because if those two lines are accidentally selected in the menu, "%config%" will be equal to "", and :backc will be executed.
3.According to your example, only a first-level menu needs to be set.

device=himem.sys
device=acios.exe
device=configp.mnu /s

rem 0RadioMenu=e,u,Partition Backup
rem color=17,c
rem time=30,Remaining time
rem endnote=6,Press ↑ ↓ keys or corresponding letter keys to select items
rem endnote=
rem endnote=6,Press → key to expand menu, press ← key to return to menu

rem defaultitem=0=Backup C drive
rem item=1=Backup D drive
rem item=2=Backup E drive
rem item=3=Backup F drive
rem item=4=Backup G drive
rem item=5=Backup H drive
rem item=6=Restore C drive
rem item=7=Restore D drive
rem item=8=Restore E drive
rem item=9=Restore F drive
rem item=10=Restore G drive
rem item=11=Restore H drive



rem block=0
set config=backc
rem block=1
set config=backd
rem block=2
....

4.The foreground color of the title and endnote should not be the same as the background color of the menu, otherwise it will not be displayed.
Floor 7 Posted 2007-09-20 22:48 ·  中国 重庆 长寿区 电信
初级用户
Credits 26
Posts 13
Joined 2007-09-20 21:30
18-year member
UID 97914
Gender Male
Status Offline
Got it! Thanks to the楼主!
Forum Jump: