Scripting Blog [archived]

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

How Can I Determine Which Version of Internet Explorer is Installed on a Computer?

(image) Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?-- MG(image) (image) (image) Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get it from the ...

How Can I Delete a Single Registry Value?

(image) Hey, Scripting Guy! How can I delete a single registry value? I don’t want to delete the entire registry key, just one value.-- BF(image) (image) (image) Hey, BF. Registry terminology can be a bit confusing, thanks in large part to those of us here at Microsoft (we tend to use a different set of terms when we talk about the ...

How Can I Determine the Elapsed Time Between Two Dates?

(image) Hey, Scripting Guy! How can I tell how many days there are between two dates? For example, if I have a log file that says an application started on January 1, 2005 and that the application ended today, is there a way to determine how many days the application ran?-- AL(image) (image) (image) Hey, AL. You know, in the second Hey, ...