PowerShell Strings Special characters


Example

When used inside a double-quoted string, the escape character (backtick `) reperesents a special character.

`0    #Null
`a    #Alert/Beep
`b    #Backspace
`f    #Form feed (used for printer output)
`n    #New line
`r    #Carriage return
`t    #Horizontal tab
`v    #Vertical tab (used for printer output)

Example:

> "This`tuses`ttab`r`nThis is on a second line"
This    uses    tab
This is on a second line

You can also escape special characters with special meanings:

`#    #Comment-operator
`$    #Variable operator
``    #Escape character
`'    #Single quote
`"    #Double quote