是什么::(双冒号)在DOS批处理文件是什么意思? [英] What does :: (double colon) mean in DOS batch files?
本文介绍了是什么::(双冒号)在DOS批处理文件是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现这个节目<一个href=\"http://baiyunmanor.com/blog/work/get-current-date-time-in-dos-batch-file/\">http://baiyunmanor.com/blog/work/get-current-date-time-in-dos-batch-file/
但我不知道什么是行
:: datetime.bat
在到底意味着什么?
at the end mean?
推荐答案
:
(也叫的注释标签的)是一个注释,就像 REM
是
::
(also called comment label) is a comment just as REM
is.
有它们之间的一些差异。主要的有:
There are some differences between them. The main ones are:
- 在
ECHO ON
AREM
行显示,但不符合评论说:
- A
:
可以执行行尾插入符号(即一个^
在一行的末尾首先是:
使得下一行也有评论)。 - 标签和
:
有一个特殊的逻辑,并且可以在括号块导致问题 - 利用内幕当他们照顾(
)
。
- With
ECHO ON
aREM
line is showed but not a line commented with::
- A
::
can execute a line end caret (that is, a^
at the end of a line starting with::
makes the next line also a comment). - Labels and
::
have a special logic and can cause problems in parenthesis blocks - take care when using them inside(
)
.
这篇关于是什么::(双冒号)在DOS批处理文件是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文