November 10th, 2014

PowerTip: Add Multiple-line Comments in PowerShell

Doctor Scripto
Scripter

Summary: Learn how to add multiple-line comments in Windows PowerShell.

Hey, Scripting Guy! Question How can I  use Windows PowerShell to add a comment that will wrap over several lines
           if I do not want to use a hash tag for each line?

Hey, Scripting Guy! Answer Begin the comment with <# and end the comment with #>, for example:

<#

   this is a

   multiple line comment

#>

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.