Friday, January 21, 2011

A trick in Powershell 2.0

How to comment-out multiple lines in Powershell ?

Block your PowerShell syntex within @" "@ symbol . Starting with @" and end with "@ . But mind one thing useing the symbol you can only comment out PowerShell syntex , no other arbitary lines.

@" "@ String known as “Here-Strings"

No comments:

Post a Comment