Scripting Blog [archived]

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

How Can I Display A Progress Bar (or Something Similar) While My Script Runs?

(image) Hey, Scripting Guy! How can I get my script to do something interesting while the code executes; you know, how can I display a progress bar or something?-- HD(image) (image) (image) Hey, HD. To begin with, we don’t recommend that you try to use a true progress bar; that’s because it’s very difficult to calculate - let alone ...

How Can I Determine Which USB Devices are Connected to a Computer?

(image) Hey, Scripting Guy! How can I determine which USB devices are connected to a computer?-- WM(image) (image) (image) Hey, WM. If you watch a lot of TV - um, not that the Scripting Guys do; we spend our spare time reading the works of Shakespeare, solving differential equations, and otherwise tending to our many intellectual pursuits...

How Can I Automatically Dismiss a Message Box After a Specified Length of Time?

(image) Hey, Scripting Guy! I’d like to display a Yes/No message box for a few seconds and then, if no one clicks a button, have the message box disappear and the script perform the default operation. How do I do that?-- JR(image) (image) (image) Hey, JR. Sounds like you need the WSH Shell object and the Popup method. Popup works a lot ...

How Can I Temporarily Add a Group to Another Active Directory Group?

(image) Hey, Scripting Guy! I’d like to add an Active Directory group to a second group, but only for an hour; after an hour, I’d like remove that group from the second group. Can I do that with a script?-- JW(image) (image) (image) Hey, JW. Well, this is definitely one of the more interesting questions we’ve received. As far as we ...