中国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-09-25 12:49
47,813 topics / 349,918 posts / today 0 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » [Reference for Arrangement] The Role of Symbols under CMD/DOS
Printable Version  159,630 / 216
Floor136 tianzhiyi Posted 2008-11-18 16:04
新手上路 Posts 2 Credits 3
Very good, I'm studying, I'm a beginner
Floor137 PENGUIT Posted 2008-11-19 19:06
新手上路 Posts 8 Credits 10
Very comprehensive and powerful, collected it, thank you
Floor138 xiefei3131 Posted 2008-11-21 10:13
初级用户 Posts 23 Credits 38 From 武汉
Learn by reference
Floor139 xieyimin2008 Posted 2008-11-27 09:05
新手上路 Posts 3 Credits 1
Very helpful! Thanks~~
Floor140 xmantj Posted 2008-12-01 12:25
新手上路 Posts 6 Credits 1
goooooooood
Floor141 ktv98 Posted 2008-12-04 12:13
初级用户 Posts 81 Credits 112
Thanks for sharing, saved it!
Floor142 Prion11 Posted 2008-12-05 09:51
新手上路 Posts 1 Credits 1
You're welcome!
Floor143 rs369007 Posted 2008-12-08 14:44
初级用户 Posts 131 Credits 147
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
)
```
Floor144 lxmxn Posted 2008-12-11 01:41
版主 Posts 4,938 Credits 11,386
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.
Floor145 yjd Posted 2008-12-15 10:48
初级用户 Posts 76 Credits 156
Hey. Most of it I can't understand.
Only used >, >>, |
Floor146 wxq5921 Posted 2008-12-17 18:10
新手上路 Posts 9 Credits 15
Really thank you very much, LZ
Floor147 lijihui Posted 2009-01-09 16:21
新手上路 Posts 1 Credits 1
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.
Floor148 yyyyyyyyy Posted 2009-02-02 12:37
初级用户 Posts 85 Credits 137
Study study
Floor149 lantu Posted 2009-02-03 14:06
初级用户 Posts 15 Credits 26
Just looking for knowledge in this area everywhere. Exactly what is needed
Floor150 slx8528 Posted 2009-02-07 15:39
初级用户 Posts 39 Credits 38
:
① 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 … 7 8 9 10 11 12 13 … 15  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023