Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Calculate percentage character frequencies from a text file by using PowerShell

Summary: Learn how to use Windows PowerShell to calculate the percentage of how often a character appears in a text file. This is the fifth post in a multi-part series of blog posts that deal with how to determine letter frequency in text files. To fully understand this post, you should read the entire series in order. Here are the posts in ...

Weekend Scripter: Use PowerShell and Custom Time Span Format Strings

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and custom time span format strings to display lapsed time. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am awake and sipping a nice cup of English Breakfast tea with a little peppermint and spearmint leaves in it. I am thinking back over yesterday...

Use PowerShell and Conditional Formatting to Format Time Spans

Summary: Learn how to use Windows PowerShell and conditional formatting to discover and  format time spans. (image)  Hey, Scripting Guy! What is a time span, and why would I want to use one? Just sayin'… —JR (image)  Hello JR, Microsoft Scripting Guy, Ed Wilson, is here. This morning is one of those mornings that ...

Use PowerShell and Conditional Formatting to Format Dates

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and conditional formatting to control the format of dates. (image)  Hey, Scripting Guy! I know that Windows PowerShell has made it easier to deal with dates, especially with some of the tricks that are available via the Get-Date cmdlet. But at times I need ...

Use PowerShell and Conditional Formatting to Format Numbers

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell and conditional formatting to format numbers. (image)  Hey, Scripting Guy! One of the big problems I have when it comes to using Windows PowerShell is figuring out how to properly format numbers. I mean, I can easily use [int] to get rid of hundreds of ...