Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Display ASCII Characters

$
0
0

Summary: Use Windows PowerShell to display ASCII characters.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly display printable ASCII characters when I am not connected
           to the Internet?

Hey, Scripting Guy! Answer Use the range operator to create a range of numbers 1 through 128, pipe it to Foreach-Object (% is the alias),
           and display the current object and the [char] value on the pipeline, for example:

1..128 | %{"$_ $([char]$_)"}


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>