Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
About Special Characters.help

About Special Characters.help

Ratings: (0)|Views: 2 |Likes:
Published by goodmama

More info:

Published by: goodmama on Aug 01, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less





TOPICabout_Special_CharactersSHORT DESCRIPTIONDescribes the special characters that you can use to control howWindows PowerShell interprets the next character in a command or parameter.LONG DESCRIPTIONWindows PowerShell supports a set of special character sequences thatare used to represent characters that are not part of the standardcharacter set. The special characters in Windows PowerShell begin with the backtickcharacter, also known as the grave accent (ASCII 96). The following special characters are recognized by Windows PowerShell:`0 Null`a Alert`b Backspace`f Form feed`n New line`r Carriage return`t Horizontal tab`v Vertical tabThese characters are case-sensitive.NULL (`0)Windows PowerShell recognizes a null special character (`0) and representsit with a character code of 0. It appears as an empty space in theWindows PowerShell output. This allows you to use Windows PowerShell toread and process text files that use null characters, such as stringtermination or record termination indicators. The null special characteris not equivalent to the $null variable, which stores a value of NULL.ALERT (`a)The alert (`a) character sends a beep signal to the computer's speaker.You can use this to warn a user about an impending action. The followingcommand sends two beep signals to the local computer's speaker:for ($i = 0; $i -le 1; $i++){"`a"}BACKSPACE (`b)The backspace character (`b) moves the cursor back one character, but itdoes not delete any characters. The following command writes the word"backup", moves the cursor back twice, and then writes the word "out"(preceded by a space and starting at the new position):"backup`b`b out"The output from this command is as follows:
back outFORM FEED (`f)The form feed character (`f) is a print instruction that ejects thecurrent page and continues printing on the next page. This characteraffects printed documents only; it does not affect screen output.NEW LINE (`n)The new line character (`n) inserts a line break immediately after thecharacter. The following example shows how to use the new line character in aWrite-Host command:"There are two line breaks`n`nhere." The output from this command is as follows:There are two line breakshere.CARRIAGE RETURN (`r)The carriage return character (`r) eliminates the entire line priorto the `r character, as though the prior text were on a different line.For example:Write-Host "Let's not move`rDelete everything before this point."The output from this command is:Delete everything before this point.HORIZONTAL TAB (`t)The horizontal tab character (`t) advances to the next tab stop andcontinues writing at that point. By default, the Windows PowerShellconsole has a tab stop at every eighth space.For example, the following command inserts two tabs between eachcolumn."Column1`t`tColumn2`t`tColumn3"The output from this command is:Column1 Column2 Column3VERTICAL TAB (`v)The horizontal tab character (`t) advances to the next vertical tab stopand writes all subsequent output beginning at that point. This characteraffects printed documents only. It does not affect screen output.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->