China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-23 03:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Reference for Arrangement] The Role of Symbols under CMD/DOS StickyI View 153,290 Replies 216
Floor 136 Posted 2008-11-18 16:04 ·  中国 北京 海淀区 联通
新手上路
Credits 3
Posts 2
Joined 2008-10-15 10:13
17-year member
UID 128411
Gender Male
Status Offline
Very good, I'm studying, I'm a beginner
Floor 137 Posted 2008-11-19 19:06 ·  中国 福建 龙岩 联通
新手上路
Credits 10
Posts 8
Joined 2006-04-08 09:32
20-year member
UID 53513
Status Offline
Very comprehensive and powerful, collected it, thank you
Floor 138 Posted 2008-11-21 10:13 ·  中国 湖北 武汉 电信
初级用户
Credits 38
Posts 23
Joined 2008-08-30 09:12
17-year member
UID 124548
Gender Male
From 武汉
Status Offline
Learn by reference
Floor 139 Posted 2008-11-27 09:05 ·  中国 海南 海口 电信
新手上路
Credits 1
Posts 3
Joined 2008-11-26 10:28
17-year member
UID 132122
Gender Male
Status Offline
Very helpful! Thanks~~
Floor 140 Posted 2008-12-01 12:25 ·  中国 吉林 长春 联通
新手上路
Credits 1
Posts 6
Joined 2008-03-12 13:47
18-year member
UID 112735
Gender Male
Status Offline
goooooooood
Floor 141 Posted 2008-12-04 12:13 ·  中国 福建 泉州 电信
初级用户
★★
Credits 112
Posts 81
Joined 2008-04-11 23:47
18-year member
UID 115654
Gender Male
Status Offline
Thanks for sharing, saved it!
CN-DOS批处理室非官方QQ群①:61377162 ②:70174619 ③:75070617
请勿尝试同时加多个群
Floor 142 Posted 2008-12-05 09:51 ·  IANA 局域网IP(Private-Use)
新手上路
Credits 1
Posts 1
Joined 2008-12-04 15:56
17-year member
UID 132866
Gender Male
Status Offline
You're welcome!
Floor 143 Posted 2008-12-08 14:44 ·  中国 四川 攀枝花 电信
初级用户
★★
Credits 147
Posts 131
Joined 2008-09-22 23:54
17-year member
UID 126352
Gender Male
Status Offline
The `@` in front of `echo` is used to prevent the `echo` command itself from being displayed. If you use `&&`, it's a logical operator for command chaining. In this case, using `@echo` just suppresses the echoing of the `echo` command's own prompt. The translation of the code block remains as it is since it's already in English in terms of the code structure, just the explanation of the `@` usage is the interpretation. So the translated content for the code part is:

```
setlocal enableDelayedExpansion
pause
set VAR=before
if "%VAR%" == "before" (
set VAR=after
if "!VAR!" == "after" @echo If you see this, it worked
)
```
Floor 144 Posted 2008-12-11 01:41 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by rs369007 at 2008-12-8 14:44:
setlocal enableDelayedExpansion
pause
set VAR=before
if "%VAR%" == "before" (
set VAR=after
if "!VAR!" == "after" @echo If you see this, it w ...

When using if judgment, you need to follow it with a command. And && is a command connector, not a command category, which will cause an error.
Floor 145 Posted 2008-12-15 10:48 ·  中国 福建 厦门 电信
初级用户
★★
Credits 156
Posts 76
Joined 2007-08-20 11:52
18-year member
UID 95399
Gender Male
Status Offline
Hey. Most of it I can't understand.
Only used >, >>, |
Floor 146 Posted 2008-12-17 18:10 ·  中国 河南 濮阳 电信
新手上路
Credits 15
Posts 9
Joined 2008-05-10 21:11
18-year member
UID 118362
Gender Male
Status Offline
Really thank you very much, LZ
Floor 147 Posted 2009-01-09 16:21 ·  中国 内蒙古 呼和浩特 联通
新手上路
Credits 1
Posts 1
Joined 2009-01-09 15:59
17-year member
UID 136237
Gender Male
Status Offline
It seems there might be some input error. If it's supposed to be a word like "xiaola" or something else, but as it is "xiiela", it's not a recognized standard English or Chinese term in a common context. Please check and provide the correct content.
Floor 148 Posted 2009-02-02 12:37 ·  中国 江苏 无锡 电信
初级用户
★★
Credits 137
Posts 85
Joined 2007-11-26 21:05
18-year member
UID 103862
Gender Male
Status Offline
Study study
Floor 149 Posted 2009-02-03 14:06 ·  中国 广东 珠海 电信
初级用户
Credits 26
Posts 15
Joined 2008-10-04 15:52
17-year member
UID 127412
Gender Male
Status Offline
Just looking for knowledge in this area everywhere. Exactly what is needed
Floor 150 Posted 2009-02-07 15:39 ·  中国 甘肃 白银 电信
初级用户
Credits 38
Posts 39
Joined 2009-01-31 10:43
17-year member
UID 137685
Gender Male
Status Offline
:
① The label locator indicates that the subsequent string is a label, which can be the object of the goto command. For example, if a ":begin" label is defined in a batch file, the "goto begin" command can be used to jump to the position after the ":begin" label to execute batch commands.



Is there a clear ending symbol or mark for the label locator here? How to identify the end of the string after the label? Write an example to illustrate, thank you! !
‹ Prev 1 8 9 10 11 12 15 Next ›
Forum Jump: