当前位置:网站首页>【批处理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也不显示,是因为@操作符会隐藏掉所在行所有指令。

边栏推荐
- [he doesn't mention love, but every word is love]
- One year's time and University experience sharing with CSDN
- Common functions of OrCAD schematic
- Lotus windowsost manually triggers space-time proof calculation
- Blue Bridge Cup SCM module code (timer) (code + comments)
- Several good weather plug-ins
- 【UVM入门 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常规方法、寄存器模型的应用场景
- Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
- LabVIEW jump to web page
- Shell command learning
猜你喜欢

What is the new business model of Taishan crowdfunding in 2022?

活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭

Operate cnblogs metaweblog API

Several schemes of traffic exposure in kubernetes cluster
![[C language] one dimensional array](/img/6a/e8b1d418fb8a7680e024e9bd8b3ec1.jpg)
[C language] one dimensional array

Omni toolbox direct download
![[Shangshui Shuo series] day 5](/img/83/28834addd8198d4bcdc718eccf5754.png)
[Shangshui Shuo series] day 5

I have used it for six years!

Cocos learning diary 3 - API acquisition nodes and components

We are different
随机推荐
基于 KubeSphere 的分级管理实践
Common functions of OrCAD schematic
lotus v1.16.0-rc2 Calibration-net
[2022 dark horse programmer] SQL optimization
The upper and lower lines of the shell are merged into one line
破万,我用了六年!
ES 终于可以搜到”悟空哥“了!
稳压二极管的原理,它有什么作用?
高效探索|ES地理位置查询的一次应用实践
How do I get red green blue (RGB) and alpha back from a UIColor object?
Shandong finds clean energy that can be used by China for 3800 years? You should know the truth first
从感知机到Transformer,一文概述深度学习简史
TEMPEST HDMI泄漏接收 2
太美的承诺因为太年轻
How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
Redirect to previous page after login? PHP - Redirecting to previous page after login? PHP
13 `bs_ duixiang. Tag tag ` get a tag object
Conditional grouping with $exists inside $cond
Debug through yalc before releasing NPM package
What is the new business model of Taishan crowdfunding in 2022?