Scripting Blog [archived]

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

How Can I Read the Contents of a Text File and Then Declare the Contents as Variables?

(image) Hey, Scripting Guy! How can I read the contents of a text file, and then declare those contents as variables?-- TC(image) (image) (image) Hey, TC. Before we begin, did you really ask us this question? We’re positive that you did, but, the way things have been going lately, we can’t be too sure. For example, by now everyone has ...

How Can I Map Drive X on a Computer, But Only If Drive X isn’t Already in Use?

(image) Hey, Scripting Guy! How can I map drive X on a computer, but only if drive X isn’t already in use?-- PN(image) (image) (image) Hey, PN. You know, this is almost too good to be true (but, sadly, it is true). The Scripting Guy who writes this column was busy writing this column. And because today just happens to be Friday the 13th ...

How Can I Remove the Password When Opening an Excel Spreadsheet?

(image) Hey, Scripting Guy! How can I remove the password when opening an Excel spreadsheet?-- JE(image) (image) (image) Hey, JE. You know, it’s finally happened: after two-and-a-half years of writing this column we’ve finally run out of things to talk about. The “heartbeat sensor” that can tell you whether someone is hiding in the...

How Can I Get a List of All the Users Who Have a Process Open on a Computer?

(image) Hey, Scripting Guy! How can I get a list of all the users who have a process open on a computer?-- RE (image) (image) (image) Hey, RE. You know, over the past 5 years the number of people who watch the news on the major networks (ABC, NBC, and CBS) has dropped precipitously; the number of people who read the newspaper each day has ...