Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Tuesday, December 1, 2009

Does PowerShell have CHR$() and STR$()?

Yes Powershell does.

$a = [char]34

34 is the ASCII code for a double quote. Type $a to retrieve the character.

To do the opposite and to retrieve the ASCII codes for a character, type this:

$b = [int][char]’A’

$b

You should have received the number 65.

No comments: