![]() |
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 18:41 |
47,812 topics / 349,912 posts / today 2 new / 48,264 members |
| DOS汉化世界 & 中文系统 (中文化室) » ConfigP.Mnu v1.01 Setting Multiple Environment Variables Issue |
| Printable Version 1,937 / 6 |
| Floor1 sweetdreamlan | Posted 2006-10-23 07:46 |
| 中级用户 Posts 92 Credits 244 | |
|
### 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. |
|
| Floor2 sweetdreamlan | Posted 2006-10-23 07:48 |
| 中级用户 Posts 92 Credits 244 | |
|
yaya, I need you to explain it again. :P
|
|
| Floor3 daiyazhuo | Posted 2006-10-23 15:27 |
| 新手上路 Posts 6 Credits 13 | |
|
Got it! Thanks to the poster!!
|
|
| Floor4 sweetdreamlan | Posted 2006-10-26 06:31 |
| 中级用户 Posts 92 Credits 244 | |
|
yaya, help solve this. How to do this
|
|
| Floor5 sweetdreamlan | Posted 2006-10-26 06:57 |
| 中级用户 Posts 92 Credits 244 | |
|
Got it, variable names can't be the same
|
|
| Floor6 yaya | Posted 2006-10-26 07:07 |
| 银牌会员 Posts 353 Credits 1,009 | |
|
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. |
|
| Floor7 d590520 | Posted 2007-09-20 22:48 |
| 初级用户 Posts 13 Credits 26 | |
|
Got it! Thanks to the楼主!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |