Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Tell If a Time Occurred in the Morning or the Evening?

(image) Hey, Scripting Guy! Given a time of day, is there an easy way to tell whether that’s a morning time or an evening time?-- HG(image) (image) (image) Hey, HG. Can you feel the excitement in the year, that sense of anticipation, the crackling energy and the flow of adrenalin? That can only mean one thing: the annual Turducken Bowl ...

Hey, Scripting Guy! How Can I Set the Date and Time on a Computer?

(image) Hey, Scripting Guy! How can I set the date and time on a computer?-- KM(image) (image) (image) Hey, KM. Well, it’s true: today is the last day of TechEd IT Forum. That also means that, for the Scripting Guys, the party is over: tomorrow morning they hop on a plane and head back for home. And, needless to say, back to the real ...

How Can I Tell If a Script is Running on the First or Second Monday of a Month?

(image) Hey, Scripting Guy! We have a logon script that needs to perform certain tasks only on the first and second Mondays of the month. How can I determine whether the script is running on the first or second Monday in a month?-- WA(image) (image) (image) Hey, WA. You know, a few months ago the Scripting Guy who writes this column ...

How Can I Change the Last Modified Timestamp for All the Files in a Folder?

(image) Hey, Scripting Guy! How can I change the last modified timestamp for all the files in a folder? I’d like the first file to have a specified timestamp, then each subsequent file to have a timestamp one minute later than the previous file.-- AF(image) (image) (image) Hey, AF; glad to see that you’re taking a break from the 2007 ...

Hey, Scripting Guy! How Can I Create A New Folder Using a Name Based on the Current Date?

(image) Hey, Scripting Guy! How can I create a new folder each night, using a folder name based on the current date?-- DM (image) (image) (image) Hey, DM. In answer to your unasked question, no, the Scripting Guy who writes this column did not get selected to sit on a jury; as a result, he’s back to work, and back to writing this ...