PowerShell - Special Characters
- $ : This Dollar mark use to declare a variable
- $?: The Dollar mark and the question mark together use to indicating whether the previous command has an error or not by returning 'True' of 'False' as the output.
- | : The pipeline uses to get the output of the first command and pass it to another command to get the result.
- .. : Double dots use to specify a range. This can be use instead of foreach loop
- :: : The double colon use to refer a static member of a class
- % : The percentage mark acts as the MOD
- ? : Question mark gives all the items which confirm the condition. This is same as 'where'
- # : Single line comment
- <# .. #> : This is for Multi- line comment
Multi-line
comment#>
- & : Ampersand use to execute a string as command
No comments:
Post a Comment