about_escape_characters.help

about_escape_characters.help - TOPIC...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TOPIC about_Escape_Characters SHORT DESCRIPTION Introduces the escape character in Windows PowerShell and explains its effect. LONG DESCRIPTION Escape characters are used to assign a special interpretation to the characters that follow it. In Windows PowerShell, the escape character is the backtick (`), also called the grave accent (ASCII 96). The escape character can be used to indicate a literal, to indicate line continuation, and to indicate special characters. Indicating a Literal When an escape character precedes a variable, it prevents a value from being substituted for the variable. When an escape character precedes a double quotation mark, Windows PowerShell interprets the double quotation mark as a character, not as a string delimiter. For example: C:\>$a = 5 C:\>"The value is stored in $a." The value is stored in 5. C:\>$a = 5 C:\>"The value is stored in `$a." The value is stored in $a. C:\> "Use quotation marks (") to indicate a string."
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2010 for the course BUS fin taught by Professor Fez during the Spring '10 term at Valparaiso.

Page1 / 2

about_escape_characters.help - TOPIC...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online