Scripting Blog [archived]

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

How Can I Determine If the Number of Files in a Series of Folders Exceeds a Specified Value?

(image) Hey, Scripting Guy! How can I determine if the number of files in a series of folders exceeds a specified value?-- DP (image) (image) (image) Hey, DP. Buongiorno. Le come sta? Tutto bene? What does all that mean? Io non so; Io non parlo Italiano. In other words: I don’t know; I don’t speak Italian. No, really: “Io non so; Io ...

How Can I Add the Date a Picture Was Taken to the File Names of My Digital Photos?

(image) Hey, Scripting Guy! How can I rename all the .JPG files in a folder so that the date the picture was taken is included in the file name?-- NH (image) (image) (image) Hey, NH. Welcome to Hey, Scripting Guy!, the only daily scripting column on TechNet that is written without the use of steroids, amphetamines, human growth hormone, or...

How Can I Check Every 30 Minutes to See If a File Has Been Modified?

(image) Hey, Scripting Guy! How can I monitor an application’s log file and issue an alert if the timestamp on that file hasn’t changed in the last 30 minutes?-- JA (image) (image) (image) Hey, JA. You know that’s a very interesting question, and one that – say, wait a second. You’re not JA from Stanwood, WA are you? Are you sure...

How Can I Create a File of a Specified Size?

(image) Hey, Scripting Guy! How can I create a file of a specified size using a script?-- RE (image) (image) (image) Hey, RE. Well, it’s day 2 of the Walla Walla Invitational Baseball tournament, but at the moment the Scripting Guy who writes this column isn’t thinking about baseball; instead, he’s getting ready to head out to the ...