Scripting Blog [archived]

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

Hey, Scripting Guy! Australian Dispatch #1: How Does a Scripting Guy Pack for a Trip?

Three o'clock in the morning is early for anyone, even a scripting guy. Yet there was this persistent annoying ringing sound that kept trying to interrupt my short-lived sleep. At last I was able to put a name to the intrusion. Alarm clock. It is time to get up. Today I begin the process of going to Australia. The flight goes from Charlotte...

Hey, Scripting Guy! How Can I Report Back File Dates Using Labels Like Today, Yesterday, and Last Week?

(image) Hey, Scripting Guy! In Microsoft Outlook if you sort and group your email by date, you don’t just get groupings that show the date; instead, you get groupings like Today, Yesterday, Last Week, etc. I’d like to do something similar; I’d like to look at the last-modified date for all the files in a folder, then report back that ...

Hey, Scripting Guy! How Can I Search a Text File for Activities That Took Place on a Specified Date?

(image) Hey, Scripting Guy! I’m trying to write a script that can go through a log file and determine the number of users who logged off on a particular day. Can you help me?-- TM(image) (image) (image) Hey, TM. You know, when you work at Microsoft people think you probably come to work in your pajamas, ride a unicycle through the ...

How Can I Use Windows PowerShell to Report Back the Name and Creation Date for Files Containing a Specified String Value?

(image) Hey, Scripting Guy! Using Windows PowerShell, how can I search for a string value in all the files in a folder full of text files, then report back the file name and creation date for each file where that string value was found? Oh, and I’d like to have these files sorted by date, too.-- JS(image) (image) (image) Hey, JS. You ...