| 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
『楼 主』:
 ConfigP.Mnu v1.01 如何控制 autoexec.bat ?
 
使用 LLM 解释/回答一下
  
ConfigP.Mnu v1.01 如何控制 autoexec.bat ? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
==  后面的双引号里面 ,应该怎么填 ? 
How to control autoexec.bat with ConfigP.Mnu v1.01? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
== What should be filled in the double quotes behind? 
    
 
  
 |   
 | 
  2006-10-21 07:29 | 
  
 | 
 | 
 
redtek 
金牌会员
 
      
 
  
  
积分 2902 
发帖 1147 
注册 2006-9-21 
状态 离线
 | 
『第 2 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by sweetdreamlan at 2006-10-21 07:29: 
ConfigP.Mnu v1.01 如何控制 autoexec.bat ? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
==  吠...  
我看到你下面有 “:help” 和 “quit” 这两个跳转标签, 
所以,上面的%config%应该如下填写:
 
IF "%config%"=="quit" GOTO QUIT 
IF "%config%"=="help" GOTO HELP  
Originally posted by sweetdreamlan at 2006-10-21 07:29: 
How to control autoexec.bat with ConfigP.Mnu v1.01? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
==  吠...  
I see there are two jump labels ":help" and "quit" below, 
so the above %config% should be filled in as follows:
 
IF "%config%"=="quit" GOTO QUIT 
IF "%config%"=="help" GOTO HELP  
    
 
  
  |  
                  
  
                        Redtek,一个永远在网上流浪的人…… 
 
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |   
 | 
  2006-10-21 09:25 | 
  
 | 
 | 
 
redtek 
金牌会员
 
      
 
  
  
积分 2902 
发帖 1147 
注册 2006-9-21 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
%config% 是环境变量,由IF判断它里面的内容来决定批处理的走向(跳转等操作)。 
 
 
如果在Config.sys文件中定义了菜单,并且你选择了某一个菜单项, 
那么这个菜单项所定义的值(你自己定义的)就会被传递给环境变量 %config%, 
在你的批处理中autoexec.bat文件,取得(一般由IF来判断)%config%的内容, 
然后决定Goto跳转的走向:) 
 
) 不好意思,我不知道你说的“ConfigP.Mnu v1.01 ”这个 还有v1.01这个到底是什么? 
  不知道你是不是指的config.sys文件还是更高级的(ConfigP.Mnu我没见过), 
  如果解释走题了,请原谅~:) 
%config% is an environment variable. Its content is judged by an IF to determine the flow (such as jumping) of the batch processing. 
 
If a menu is defined in the Config.sys file and you select a menu item, then the value (defined by yourself) of this menu item will be passed to the environment variable %config%. In your batch processing's autoexec.bat file, the content of %config% is obtained (usually judged by IF), and then the direction of Goto jump is determined :) 
 
) Sorry, I don't know what "ConfigP.Mnu v1.01" you mentioned is, and what exactly v1.01 is? 
  I don't know if you mean the config.sys file or something more advanced (I haven't seen ConfigP.Mnu), 
  If the explanation is off-topic, please forgive me ~ :) 
    
 
  
  |  
                  
  
                        Redtek,一个永远在网上流浪的人…… 
 
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |   
 | 
  2006-10-21 09:31 | 
  
 | 
 | 
 
redtek 
金牌会员
 
      
 
  
  
积分 2902 
发帖 1147 
注册 2006-9-21 
状态 离线
 | 
『第 4 楼』:
 
 
使用 LLM 解释/回答一下
  
如果你说的是用Config.sys的系统配置的选择来由Autoexec.bat文件决定程序的走向, 
那么要看到Config.sys的选择原理, 
则可以在Autoexec.bat中多加一句: 
 
Echo %config% 
 
这样,就可以看到%config%这个环境变量的内容是什么了, 
可以看到它的原理和做更好玩的事情:) 
If what you said is that the choice of the system configuration using Config.sys is determined by the Autoexec.bat file to decide the direction of the program, then to see the selection principle of Config.sys, you can add an extra line in Autoexec.bat: 
 
Echo %config% 
 
In this way, you can see what the content of the %config% environment variable is, and you can see its principle and do more interesting things:) 
    
 
  
  |  
                  
  
                        Redtek,一个永远在网上流浪的人…… 
 
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |   
 | 
  2006-10-21 09:33 | 
  
 | 
 | 
 
weilong888 
银牌会员
 
     
 
  
 
积分 1270 
发帖 548 
注册 2004-5-31 
状态 离线
 | 
『第 5 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by sweetdreamlan at 2006-10-21 07:29 AM: 
ConfigP.Mnu v1.01 如何控制 autoexec.bat ? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
==  吠...  
直接用GOTO %CONFIG%是不是会更简洁一些?  
Originally posted by sweetdreamlan at 2006-10-21 07:29 AM: 
How to control autoexec.bat with ConfigP.Mnu v1.01? 
 
@ECHO OFF 
IF "%config%"=="" GOTO QUIT 
IF "%config%"=="" GOTO HELP 
 
:help 
pause 
 
:quit 
pause 
 
==  吠...  
Is it more concise to directly use GOTO %CONFIG%?  
    
 
  
 |   
 | 
  2006-10-21 10:38 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
 | 
  2006-10-21 11:12 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
『第 7 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by redtek at 2006-10-21 09:25: 
 
 
 
我看到你下面有 “:help” 和 “quit” 这两个跳转标签, 
所以,上面的%config%应该如下填写: 
 
IF "%config%"== ...  
但是,config.sys  里的标签不是这样 
没有help,和 quit 标签  
Originally posted by redtek at 2006-10-21 09:25: 
 
I saw that you have ":help" and "quit" these two jump tags below, 
so, the above %config% should be filled in as follows: 
 
IF "%config%"== ...  
But, the tags in config.sys are not like this 
There are no help and quit tags  
    
 
  
 |   
 | 
  2006-10-21 11:14 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
 | 
  2006-10-21 11:15 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
『第 9 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by redtek at 2006-10-21 09:33: 
如果你说的是用Config.sys的系统配置的选择来由Autoexec.bat文件决定程序的走向, 
那么要看到Config.sys的选择原理, 
则可以在Autoexec.bat中多加一句: 
 
E ...  
恩,谢谢  我试试  
Originally posted by redtek at 2006-10-21 09:33: 
If you are referring to the selection of system configurations using Config.sys being determined by the program flow in the Autoexec.bat file, 
then to see the selection principle of Config.sys, 
you can add an extra line in Autoexec.bat: 
 
E ...  
Hmm, thanks. I'll try it.  
    
 
  
 |   
 | 
  2006-10-21 11:17 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
『第 10 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by redtek at 2006-10-21 09:33: 
如果你说的是用Config.sys的系统配置的选择来由Autoexec.bat文件决定程序的走向, 
那么要看到Config.sys的选择原理, 
则可以在Autoexec.bat中多加一句: 
 
Echo %config.sys%  ...  
不行,行不通 
显示  echo is on 
然后我加个  @echo off 
就显示  echo if off 
用type 也不行  
Originally posted by redtek at 2006-10-21 09:33: 
If what you're saying is that the selection of the system configuration using Config.sys is determined by the Autoexec.bat file to determine the course of the program, 
then to see the selection principle of Config.sys, 
you can add an extra line in Autoexec.bat: 
 
Echo %config.sys%  ...  
No, it doesn't work 
It displays echo is on 
Then I add a @echo off 
It displays echo if off 
Using type doesn't work either  
    
 
  
 |   
 | 
  2006-10-21 11:31 | 
  
 | 
 | 
 
redtek 
金牌会员
 
      
 
  
  
积分 2902 
发帖 1147 
注册 2006-9-21 
状态 离线
 | 
『第 11 楼』:
 
 
使用 LLM 解释/回答一下
  
对不起我写错了,是: 
 
不是加 Echo %config.sys%  是加一句:   
 
ECHO   %CONFIG% 
 
 
但是,那个Configp.mnu你写的那个链接我刚去看,非常精彩! 
只是没时间慢看,我也下载一个试试先:) 
(所以,无法确定那个configp.mnu传给autoexec.bat什么…… 
 
echo %config%  
这句先看看:) 
I'm sorry I made a mistake. It's: 
 
It's not adding Echo %config.sys% but adding a line:   
 
ECHO   %CONFIG% 
 
However, the link you wrote for Configp.mnu I just went to see, it's very wonderful! 
Just don't have time to read it slowly, I'll also download one and try first : ) 
(So, can't be sure what that configp.mnu passes to autoexec.bat... 
 
echo %config%  
Let's take a look at this sentence first : ) 
    
 
  
  |  
                  
  
                        Redtek,一个永远在网上流浪的人…… 
 
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |   
 | 
  2006-10-21 11:40 | 
  
 | 
 | 
 
yaya 
银牌会员
 
     
 
  
  
积分 1009 
发帖 353 
注册 2003-9-4 
状态 离线
 | 
『第 12 楼』:
 
 
使用 LLM 解释/回答一下
  
环境变量需自己设置 
在config.sys的某一个控制块中加入set config=quit或者set config=help 
You need to set the environment variables yourself. Add "set config=quit" or "set config=help" in a certain control block of config.sys 
    
 
  
 |   
 | 
  2006-10-21 21:37 | 
  
 | 
 | 
 
sweetdreamlan 
中级用户
 
   
 
  
  
积分 244 
发帖 92 
注册 2006-5-13 
状态 离线
 | 
『第 13 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by yaya at 2006-10-21 21:37: 
环境变量需自己设置 
在config.sys的某一个控制块中加入set config=quit或者set config=help  
谢谢,又仔细的看了一遍你的贴子 
看到里面写了,set cm=cdrom  这一句 
以前没有看到,不好意思 
这个可以同时设几个变量的吗 
如
 
set config=quit 
set config=help 
set config=dos
  
可以的吗 ?  
Originally posted by yaya at 2006-10-21 21:37: 
You need to set the environment variables yourself 
Add set config=quit or set config=help in a certain control block in config.sys  
Thank you, I carefully read your post again 
I saw that it wrote set cm=cdrom this sentence 
I didn't see it before, sorry 
Can this set several variables at the same time? 
Such as
 
set config=quit 
set config=help 
set config=dos
  
Is this possible?  
    
 
  
 |   
 | 
  2006-10-22 06:25 | 
  
 | 
 | 
 
yaya 
银牌会员
 
     
 
  
  
积分 1009 
发帖 353 
注册 2003-9-4 
状态 离线
 | 
『第 14 楼』:
 
 
使用 LLM 解释/回答一下
  
可以,但应放到不同的控制块 
Yes, but it should be placed in different control blocks 
    
 
  
 |   
 | 
  2006-10-22 23:57 | 
  
 | 
 | 
 
d590520 
初级用户
 
  
 
  
  
积分 26 
发帖 13 
注册 2007-9-20 
状态 离线
 | 
 | 
  2007-9-20 22:58 | 
  
 |