是什么::(双冒号)在DOS批处理文件是什么意思? [英] What does :: (double colon) mean in DOS batch files?

查看:1291
本文介绍了是什么::(双冒号)在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 A REM 行显示,但不符合评论说:

  • A 可以执行行尾插入符号(即一个 ^ 在一行的末尾首先是使得下一行也有评论)。

  • 标签和有一个特殊的逻辑,并且可以在括号块导致问题 - 利用内幕当他们照顾(

  • With ECHO ON a REM 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆