Scripting Blog [archived]

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

How to Express Dates in Different Fashions with Windows PowerShell

  (image) Hey, Scripting Guy! I need to use Windows PowerShell to be able to parse dates. We have dates that are displayed in different ways. Some are day/month/year, others are month/day/year, and still others are year/month/day. I need to be able to express these different date configurations with a minimal amount of monkeying around...

Dandelions, VCR Clocks, and Last Logon Times: These Are a Few of Our Least Favorite Things

  (Note: This blog post appeared originally as an article on the old Microsoft Script Center. It was originally published in December 2005. We are resurrecting it here by popular demand.) Sometimes the things that should be so easy turn out to be incredibly difficult. For example, have you ever tried to get rid of dandelions? (One of the ...

Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?

(image) Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done?- RH(image) (image) Hi RH, Ever since I read your e-mail message, I have had this old ...