当前位置:网站首页>【批处理DOS-CMD命令-汇总和小结】-添加注释命令(rem或::)
【批处理DOS-CMD命令-汇总和小结】-添加注释命令(rem或::)
2022-06-25 06:39:00 【dssgresadfsrgre】
如果不用rem或::的话,直接输出注释文本,会报错——这不是命令。

添加rem或::后,注释文本才会在cmd窗口中保留下来。至于rem和::之间的区别,我目前还没看出来,貌似就只有::的下一行离所在行更紧凑这个差异点了。

注意:rem和::本质上也是一种指令,因此当处于ECHO关闭状态或者执行bat文件时所在行的最前面有@操作符时,就会默认隐藏起来。

执行上图的bat文件,得到的 结果如下。echo off的下面一句rem不显示,因为处于echo关闭状态。而echo on下面一句rem也不显示,是因为@操作符会隐藏掉所在行所有指令。

边栏推荐
- Chang Wei (variables and constants) is easy to understand
- Lotus windowsost manually triggers space-time proof calculation
- 13 `bs_ duixiang. Tag tag ` get a tag object
- 终于等到你,小程序开源啦~
- Event registration Apache pulsar x kubesphere online meetup hot registration
- 100 times larger than the Milky way, Dutch astronomers found mysterious objects in deep space
- Blue Bridge Cup SCM module code (matrix key) (code + comments)
- Icon already includes gloss effects
- Changing the background color of tab bar - changing the background color of tab bar
- Lotus v1.16.0-rc2 Calibration net
猜你喜欢

The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse

Several good weather plug-ins

Harmony美食菜单界面

高数基础_函数的奇偶性

【xxl-job】池塘水绿风微暖,记得玉真初见面

The king scheme in distributed locks - redisson

Rotation vector (rotation matrix) and Euler angle

Sqlmap advanced use – cookies

我的处女作杀青啦!

Advanced mathematics foundation_ Parity of functions
随机推荐
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
How to store the directory / hierarchy / tree structure in the database- How to store directory / hierarchy / tree structure in the database?
Display purchase Summary - Dell 2705qm BenQ pd2700u
正版photoshop2022購買體驗經曆分享
几款不错的天气插件
Shandong finds clean energy that can be used by China for 3800 years? You should know the truth first
【UVM入门 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常规方法、寄存器模型的应用场景
What common APIs are involved in thread state changes
48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
Shell命令学习
Debug through yalc before releasing NPM package
What is the new business model of Taishan crowdfunding in 2022?
[introduction to UVM== > episode_9] ~ register model, integration of register model, general methods of register model, application scenarios of register model
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
韩信大招:一致性哈希
Large funds support ecological construction, and Plato farm builds a real meta universe with Dao as its governance
网络是怎样连接的?
14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
MySQL - definition and assignment of variables
Practice of hierarchical management based on kubesphere