我想添加这样的评论:
makecert -r ^ // This means SelfSigned
-pe ^ // Private key is exportable
-a sha512 ^ // The algoritm
...
这可能吗?怎么办?
最佳答案
没有任何官方内容,但有一个简单且非常有效的技巧 - 使用 undefined variable 。至少添加一个=
以保证内容不能是有效的变量名,因为变量名中不能使用该字符。我在开头和结尾使用一个只是为了对称。此外,注释不能包含 %
或 :
。最后,行继续符 ^
字符必须是行中的最后一个字符。
makecert -r %= This means SelfSigned =% ^
-pe %= Private key is exportable =% ^
-a sha512 %= The algoritm =% ^
...
注意 - 这只适用于批处理脚本。它不能在命令行上使用。
关于batch-file - DOS 多行批处理命令。如何在参数之间添加注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28697592/