中国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-12 21:34
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Question about %config%
Printable Version  889 / 9
Floor1 hotdog Posted 2003-08-06 00:00
中级用户 Posts 78 Credits 411
In autoexec
goto%config%
why does it correspond to config.sys
If I have some other .sys file
can I also use it like this, for example file.sys
with goto%file%
Floor2 电吉入侵 Posted 2003-08-06 00:00
初级用户 Posts 377 Credits 1,480
%config% is a variable, it has nothing to do with config.sys..
Floor3 hotdog Posted 2003-08-06 00:00
中级用户 Posts 78 Credits 411
So I'm asking whether it can be changed to %file% and so on
Floor4 sensen Posted 2003-08-06 00:00
初级用户 Posts 64 Credits 286
You really do have a lot of questions. You'd better buy a DOS book first and learn some of the most basic stuff!
Floor5 hotdog Posted 2003-08-06 00:00
中级用户 Posts 78 Credits 411
Yes, yes
but you can't buy DOS books now
Floor6 电吉入侵 Posted 2003-08-07 00:00
初级用户 Posts 377 Credits 1,480
Go read web pages.....
Floor7 hotdog Posted 2003-08-07 00:00
中级用户 Posts 78 Credits 411
goto %config%
:windows
win
goto done
:dos
NC
:done
Can %config% be changed to some other %xxx%
Floor8 xiaojun Posted 2003-08-08 00:00
银牌会员 Posts 499 Credits 2,202
Let me give you a suggestion, my friend: go by your own ideas, change it, reboot, and see whether it achieves what you want; if it's wrong, change it again, then look for the cause and the error; for one tiny error, (the English already said how many lines of error, but I can't read bird language) I kept changing it and rebooting, and in the end I figured it out. That's still better than asking here and waiting here for everything. And read more posts, search more too, and only ask if you really can't work it out, wouldn't that be better?
Floor9 Wengier Posted 2003-08-08 00:00
系统支持 Posts 10,521 Credits 27,736
The answer is: you can't change it! %CONFIG% is a dedicated variable value, you can't change it casually.
Floor10 GOTOmsdos Posted 2003-08-17 00:00
铂金会员 Posts 1,827 Credits 5,154
When the user sets up a multiple menu in config.sys, MSDOS automatically saves the selected configuration item into the config variable. For example, if the user adds goto %config% in autoexec.bat, then it will jump to the configuration item in config.sys that he selected.
Brother! You understand now, right? In other words, this is a variable built into MSDOS.
But when there are no multiple menus, it seems there is no need to add this goto %config% in autoexec.bat. Though this variable may still be valid.
But there is one thing I still don't understand: since the config.sys configuration is based on the user's final choice, then isn't "goto %config%" in autoexec.bat redundant?
(Unless it's a statement like this: if "%config%"=="something or other" command---)

Experts, please clear up my confusion!













[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023