Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Subtract Days From a UTC Date-Time Value in Windows 2000?

(image) Hey, Scripting Guy! On a Windows 2000 computer, how can I subtract days from a UTC date-time value?-- KP (image) (image) (image) Hey, KP. Yes, we do blame all of this on Scripting Guy Dean Tsaltas. The Scripting Guy who writes this column has known Dean for six years now, and Dean has spent those entire six years complaining about ...

How Can I Append a Blank Line to a Text File, Then Append the Current Date and Time?

(image) Hey, Scripting Guy! How can I append a blank line to a text file, then append the current date and time?-- PL(image) (image) (image) Hey, PL. You know, back in the 1600s people were inordinately worried about witches and witchcraft. Fortunately, though, they developed a sure-fire test to determine whether or not someone was a witch...

How Can I Separate Hours and Minutes in a Date-Time Value?

(image) Hey, Scripting Guy! In determining system uptime I get back a value like 65.75 hours. How can I convert this value to "65 hours and 45 minutes"?-- JM(image) (image) (image) Hey, JM. We’ll see what we can do for you, but we have to be honest: this is a very sad day for the Scripting Guys. Thanks to the baseball playoffs the ...