|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
副作用是有的,比如会把变量值中的半角感叹号抛弃,其他的副作用暂时还没观察到,有待各位去发现。
There are side effects. For example, it will discard the half-width exclamation mark in the variable value. Other side effects haven't been observed for the time being, and it remains to be discovered by you all.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2007-3-13 02:17 |
|
|
willsion
高级用户
   
积分 793
发帖 312
注册 2004-9-2
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2007-3-13 02:17 AM:
副作用是有的,比如会把变量值中的半角感叹号抛弃,其他的副作用暂时还没观察到,有待各位去发现。
请问其有没有一个其作用范围,假如其在一个for ( )内部定义,是否只在for()内起作用。如果这样的话,就能减少一些可能引起的副作用了。
Originally posted by namejm at 2007-3-13 02:17 AM:
There are side effects, for example, it will discard the half-width exclamation mark in the variable value. Other side effects have not been observed for the time being, and it remains to be discovered by everyone.
Does it have a scope of action? If it is defined inside a for () loop, does it only work within the for () loop? If so, it can reduce some possible side effects.
|
|
2007-3-13 03:45 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
setlocal 的含义是使变量本地化,当它碰到第一个 endlocal 语句的时候,结束这个本地化的过程,所以,如果在 for () 内部定义的话,如果不在合适的位置加上 endlocal 语句,则 setlocal enabledelayedexpansion 语句始终会起作用。
另外,超过32层的 setlocal 语句会产生"已经达到最大的 setlocal 递归层"的错误,而解决这个问题的手段之一,就是在执行第33个 setlocal 语句前用 endlocal 语句来结束变量的本地化过程。
The meaning of setlocal is to localize variables. When it encounters the first endlocal statement, it ends this localization process. So, if defined inside for (), if the endlocal statement is not added in the appropriate position, the setlocal enabledelayedexpansion statement will always take effect.
In addition, more than 32 levels of setlocal statements will generate the error "The maximum setlocal recursion level has been reached". And one of the means to solve this problem is to use the endlocal statement to end the variable localization process before executing the 33rd setlocal statement.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2007-3-13 06:53 |
|
|
userlzx
新手上路

积分 12
发帖 6
注册 2006-10-26
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
说的很细。。有点懂了。。谢谢~~~
It's very detailed. I kind of understand. Thank you~~~
|
|
2007-3-13 15:28 |
|
|
hxmupdata
初级用户
 
积分 76
发帖 39
注册 2007-3-9
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
LZ很幽默,讲了不少东西,斑竹也补充的很多.........................
LZ is very humorous, talked about a lot of things, and the moderator also supplemented a lot.........................
|

狐狸喜欢狡猾。。 |
|
2007-3-14 21:58 |
|
|
dglsy
初级用户
 
积分 39
发帖 20
注册 2007-1-24
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
真是太感谢了!谢谢楼主
Thanks a lot! Thanks to the original poster
|
|
2007-3-15 21:40 |
|
|
wei7120
新手上路

积分 17
发帖 8
注册 2006-10-29
状态 离线
|
|
2007-3-16 00:19 |
|
|
nforce1
初级用户
 
积分 128
发帖 16
注册 2007-1-26
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
感谢大家的支持,偶今天才有空逛逛这里。呵呵!
特别谢谢namejm版主对大家的指导。偶也学习啦!!
Thanks for everyone's support. I just had time to stroll around here today. Hehe!
Special thanks to moderator namejm for guiding everyone. I also learned from it!!
|
|
2007-3-16 23:20 |
|
|
wxjlotus
社区乞丐
积分 -54
发帖 14
注册 2007-1-3 来自 重庆大学
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
我今天终于搞明白了,哈哈哈哈!多谢多谢!!!
I finally figured it out today, haha! Thanks a lot!!!
|

太阳雨 |
|
2007-3-17 11:41 |
|
|
cy123
初级用户
 
积分 76
发帖 30
注册 2007-1-7
状态 离线
|
|
2007-3-18 09:44 |
|
|
Billunique
中级用户
   菜鸟总动员
积分 259
发帖 112
注册 2006-8-28
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
你表达得这么清晰,真是佩服啊~学习、学习!
Your expression is so clear, really admire it~ Learn, learn!
|
|
2007-3-22 11:36 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
很不错,希望楼主再写一些类似的文章,让新手更容易理解.
It's very good. I hope the original poster will write some similar articles to make it easier for newcomers to understand.
|

QQ:366840202
http://chenall.net |
|
2007-3-22 13:10 |
|
|
nforce1
初级用户
 
积分 128
发帖 16
注册 2007-1-26
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
Originally posted by chenall at 2007-3-22 12:10 AM:
很不错,希望楼主再写一些类似的文章,让新手更容易理解.
偶也希望可以,只不过偶是心有余而力不足(别想歪啊~~呵)
太忙啦,偶有时间都只能休息了!
其实论坛内高手如云,随便请教任何一个都受益非浅啊!
有时间一定会再写!其实偶也是菜鸟啊!!哈哈!
Originally posted by chenall at 2007-3-22 12:10 AM:
It's very good. I hope the original poster will write some similar articles to make it easier for newcomers to understand.
I also hope I can, but it's just that I have more heart than strength (don't get me wrong~~heh)
Too busy! When I have time, I can only rest!
In fact, there are many experts in the forum. You can benefit a lot by asking any of them casually!
I will definitely write again when I have time! Actually, I'm also a noob!! Haha!
|
|
2007-3-24 01:23 |
|
|
swallow
新手上路

积分 10
发帖 5
注册 2007-3-19
状态 离线
|
『第 29 楼』:
感谢!
使用 LLM 解释/回答一下
这两天正为setlocal EnableDelayedExpansion这个命名犯愁呢,今天看到你的帖子,茅塞顿开,太感谢了。
These past two days I've been worrying about the command setlocal EnableDelayedExpansion, but today I saw your post and suddenly saw the light, thanks a lot.
|
|
2007-3-26 08:36 |
|
|
stornager
中级用户
   scriptlover
积分 328
发帖 131
注册 2007-3-25
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
好样的 ,希望楼主多发贴子让我们新手学习.(:)(:)
Well done! Hope the thread starter posts more to let us newbies learn. (:)(:)
|
|
2007-3-31 04:16 |
|