|
plikefly
新手上路

积分 13
发帖 7
注册 2007-10-19
状态 离线
|
『第 76 楼』:
使用 LLM 解释/回答一下
真是受教啊,也看了will Sort的帖子
好东西,这回可算理解了变量扩充了
谢啦
Really learned a lot, also read the post of will Sort. Good stuff, this time I finally understand the variable expansion. Thanks
|
|
2008-2-19 12:20 |
|
|
windowsxphao
初级用户
 
积分 25
发帖 14
注册 2006-11-2
状态 离线
|
『第 77 楼』:
使用 LLM 解释/回答一下
楼主辛苦了,对我等新手很有用的帖子,必须支持一下下
The building owner has worked hard. This post is very useful for newbies like us, and we must support it a little bit.
|
|
2008-3-11 10:46 |
|
|
5872169
高级用户
   
积分 959
发帖 474
注册 2007-10-25
状态 离线
|
|
2008-3-11 10:48 |
|
|
bat-zw
金牌会员
      永远的学习者
积分 3105
发帖 1276
注册 2008-3-8
状态 离线
|
『第 79 楼』:
使用 LLM 解释/回答一下
Originally posted by willsion at 2007-3-13 01:44:
另外,有个疑问,不知道变量延迟是否有副作用,如果没有副作用的话
,那每个程序头干脆插上setlocal EnableDelayedExpansion语句了。就象
@echo off一样。
应该是有副作用的,我有次写代码时就遇到了(是本人不小心犯的错),如下:
:begin
@echo off&setlocal EnableDelayedExpansion
.........................................
........................................
..........................................
goto begin
本来:begin 是要放在‘@echo off&setlocal EnableDelayedExpansion’后面的,结果运行一段时间后,总是显示表明setlocal己到了最大限定值(原文不记得了),P中的变量延迟也出现错误和无效。由于本人水平有限,叙述到此,请大家多多发表自己的意见了(目的:共同学习和提高)。
Originally posted by willsion at 2007-3-13 01:44:
Additionally, there is a question. I don't know if variable delay has side effects. If there are no side effects, then every program header can simply insert the setlocal EnableDelayedExpansion statement. Just like @echo off.
It should have side effects. I encountered it once when writing code (it was a mistake made by myself). As follows:
:begin
@echo off&setlocal EnableDelayedExpansion
.........................................
........................................
..........................................
goto begin
Originally, :begin was supposed to be placed after '@echo off&setlocal EnableDelayedExpansion'. But after running for a while, it always displayed that the setlocal had reached the maximum limit (I can't remember the original text). The variable delay in P also had errors and became invalid. Due to my limited level, I will stop here for narration. Everyone is welcome to express their opinions. The purpose is to learn and improve together.
|
|
2008-3-11 11:06 |
|
|
dslz666
中级用户
  
积分 233
发帖 117
注册 2007-11-28
状态 离线
|
『第 80 楼』:
使用 LLM 解释/回答一下
谢谢楼主,看了你得贴子。又懂了不少。
Thanks to the LZ, after reading your post, I've learned a lot more.
|
|
2008-3-18 19:53 |
|
|
zsj008od
初级用户
 
积分 28
发帖 12
注册 2007-5-8
状态 离线
|
『第 81 楼』:
使用 LLM 解释/回答一下
刚好解决我现在的问题:)谢谢
之前在for中应用
set /a n=%%f
set /a m=n/16
set /a o=n%16
...
不能到达正确结果,现在好了:)
Just solved my current problem:) Thank you. Previously, in the for, I used set /a n=%%f set /a m=n/16 set /a o=n%16... and couldn't get the correct result, but now it's fixed:)
|
|
2008-3-19 19:01 |
|
|
vivifier0923
新手上路

积分 2
发帖 1
注册 2008-4-9
状态 离线
|
|
2008-4-9 23:37 |
|
|
gao123
新手上路

积分 12
发帖 6
注册 2008-2-21
状态 离线
|
|
2008-4-10 14:36 |
|
|
jipinshangren
初级用户
 
积分 120
发帖 62
注册 2008-4-11 来自 四川内江
状态 离线
|
『第 84 楼』:
使用 LLM 解释/回答一下
谢谢班主了,我好像懂一点了!不知道是不是说,那些延迟就是使得echo等附值语句有效,不会因为cmd的运行命令使赋值能够完成!还望班主指点一二!
Thanks to the moderator, I seem to understand a little! I don't know if it means that those delays make echo and other assignment statements effective, and the assignment can be completed without being affected by the running commands of cmd! Still hope the moderator can give some guidance!
|
|
2008-4-11 10:41 |
|
|
tswcbyy
新手上路

积分 14
发帖 7
注册 2006-6-28
状态 离线
|
|
2008-4-11 13:59 |
|
|
joyn
中级用户
   丶杏灬丶
积分 280
发帖 105
注册 2008-5-6 来自 广西
状态 离线
|
『第 86 楼』:
经典~~
使用 LLM 解释/回答一下
我一直在雾里排徊~~现在终于可以找到出路了~~~
太经典了~~
太感谢了
I've been wandering in confusion~~ Now I can finally find my way out~~~
So classic~~
Thanks a lot
|
|
2008-5-6 23:50 |
|
|
stance
初级用户
 
积分 64
发帖 46
注册 2008-4-21
状态 离线
|
『第 87 楼』:
使用 LLM 解释/回答一下
非常感謝樓主!
講解很清晰,辛苦辛苦~~~
Thank you very much, the original poster!
The explanation is very clear, hard work, hard work~~~
|
|
2008-5-7 18:22 |
|
|
jia332
初级用户
 
积分 160
发帖 81
注册 2006-7-27
状态 离线
|
『第 88 楼』:
使用 LLM 解释/回答一下
十分感谢楼主困扰我2天的问题终于解决了
对论坛也表示感谢
Thank you very much, the problem that troubled me for 2 days has finally been solved. Also, thank you to the forum.
|
|
2008-5-23 16:15 |
|
|
hansom
初级用户
 
积分 161
发帖 87
注册 2008-5-25
状态 离线
|
|
2008-5-28 00:36 |
|
|
wgx1688
初级用户
 
积分 60
发帖 34
注册 2007-4-24
状态 离线
|
『第 90 楼』:
使用 LLM 解释/回答一下
====我要看好一阵才能有点......
===I need to look at it for a while to get a bit...
|
|
2008-7-11 14:36 |
|