November 8th, 2015

PowerTip: Display Numeric ASCII Value of Letter

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to display the numeric ASCII value of a letter.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the numeric ASCII value associated with a letter?

Hey, Scripting Guy! Answer Use [byte] and [char] together. The following example will display the numeric ASCII value of the capital letter A:

[byte][char]’A’

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.