如何在批处理/ cmd中“注释掉”(添加注释)? - How to “comment-out” (add comment) in a batch/cmd?

2020/06/28 23:40
阅读数 179

问题:

I have a batch file that runs several python scripts that do table modifications. 我有一个批处理文件,它运行几个进行表修改的python脚本。

  1. I want to have users comment out the 1-2 python scripts that they don't want to run, rather than removing them from the batch file (so the next user knows these scripts exist as options!) 我想让用户注释掉他们不想运行的1-2个python脚本,而不是从批处理文件中删除它们(所以下一个用户知道这些脚本作为选项存在!)

  2. I also want to add comments to bring to their attention specifically the variables they need to update in the Batch file before they run it. 我还想添加注释,以便特别注意它们在运行之前需要在批处理文件中更新的变量。 I see that I can use REM . 我看到我可以使用REM But it looks like that's more for updating the user with progress after they've run it. 但看起来更像是在用户运行后更新用户的进度。

Is there a syntax for more appropriately adding a comment? 是否有更适当添加评论的语法?


解决方案:

参考一: https://stackoom.com/question/lHfW/如何在批处理-cmd中-注释掉-添加注释
参考二: https://oldbug.net/q/lHfW/How-to-comment-out-add-comment-in-a-batch-cmd
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部