Scripting Blog [archived]

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

How Can I Lock a Workstation After Five Minutes of Inactivity?

(image) Hey, Scripting Guy! How can I lock a workstation after five minutes of inactivity, something recommended to us by our auditors?-- NM(image) (image) (image) Hey, NM. To tell you the truth, we don’t know. Locking a computer remotely can be a bit of a problem; for more information on that, take a look at one of our columns from a ...

How Can I Verify that ADAM is Installed?

(image) Hey, Scripting Guy! How can I verify that ADAM is installed?-- CW(image) (image) (image) Hey, CW. Although former President Ronald Reagan is usually given credit for the phrase “Trust but verify,” we’ve always thought that sounded more like the sort of thing a system administrator would say: “Of course I trust you when you ...

How Can I Import a Fixed-Width File into Microsoft Excel?

(image) Hey, Scripting Guy! How can I import a fixed-width file into Microsoft Excel?-- JP(image) (image) (image) Hey, JP. We have a confession to make here, something we’re terribly ashamed of: for a moment - just for a moment, mind you - we doubted Microsoft Excel. Yes, we know: how could we do such a thing? All we can say is that we ...

How Can I Determine the Height and Width of a Picture File Without Using Windows Media Player?

(image) Hey, Scripting Guy! Awhile back you showed us a method to determine the height and width of a picture file. However, that solution required us to import all our picture files into Windows Media Player. Isn’t there another way to get this information, one that doesn’t require Windows Media Player?-- RP(image) (image) (image) Hey...

How Can I Use ADO to Read a Text File Where All the Data is on a Single Line?

(image) Hey, Scripting Guy! I have a fixed-width text file which includes first name (6 characters), last name (13 characters), and department (9 characters) all on a single line. How do I read that using ADO?-- DW(image) (image) (image) Hey, DW. Well, to be perfectly honest, we don’t think you can read a file like this using ADO (...