积极答复者
powershell中PS1脚本中注释命令应该用什么符号?

问题
答案
-
您好,
在PowerShell脚本中,我们可以使用“#”来注释一行,如果有连续多行需要注释,我们可以用“<#” 和“#>”。
下面文章中对于这两种注释有更多的说明,供您参考:
https://technet.microsoft.com/en-us/library/hh500719.aspx
https://yq.aliyun.com/ziliao/111773
请注意:由于该网站不是由微软托管的,该链接可能会改变,恕不另行通知。Microsoft不保证此信息的准确性。
Best Regards,
William
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已建议为答案 William LiangMicrosoft contingent staff, Moderator 2018年8月20日 6:10
- 已标记为答案 谷青松 2018年11月21日 7:05
全部回复
-
您好,
在PowerShell脚本中,我们可以使用“#”来注释一行,如果有连续多行需要注释,我们可以用“<#” 和“#>”。
下面文章中对于这两种注释有更多的说明,供您参考:
https://technet.microsoft.com/en-us/library/hh500719.aspx
https://yq.aliyun.com/ziliao/111773
请注意:由于该网站不是由微软托管的,该链接可能会改变,恕不另行通知。Microsoft不保证此信息的准确性。
Best Regards,
William
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已建议为答案 William LiangMicrosoft contingent staff, Moderator 2018年8月20日 6:10
- 已标记为答案 谷青松 2018年11月21日 7:05
-
您好,
我正在查看这个问题的进度。
如果我们的回答对您的问题有帮助,请将它标记为答复;如果您有任何问题,请随时与我们联系。
期待您的反馈。
Best Regards,
William
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.