PowerTip: Display Numeric ASCII Value of Letter

Doctor Scripto

Dr Scripto

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’

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment