Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Map Drives Based on IP Address?

(image) Hey, Scripting Guy! I have been using your script that maps drives based on group membership, and it works just fine. However, I need to modify the script so that drive mappings are also based on the location of the computer (more specifically, on the computer IP address). For example, we have a remote site that uses an ISDN ...

How Can I Dynamically Show Available Drive Letters in a List Box?

(image) Hey, Scripting Guy! I’m using an HTA as a drive-mapping application. I’d like to be clever about this and have the available drive letters appear in a list box. How can I dynamically show all the drive letters available on a computer?-- JT(image) (image) (image) Hey, JT. You know, just the other day the Scripting Guy who writes...

How Can I Remap Network Drives So They Use an IP Address Rather Than a Computer Name?

(image) Hey, Scripting Guy! How can I remap network drives so they point to the IP address of the remote computer rather than the computer name?-- YM (image) (image) (image) Hey, YM. You know, yesterday we started off this column by saying, “Never mind,” referring to the fact that, in a previous article, the Scripting Guy who writes ...

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 Map a Drive, Copy a File to That Drive, and Then Unmap the Drive?

(image) Hey, Scripting Guy! How can I map a drive, copy a file to that drive, and then unmap the drive?-- ZK(image) (image) (image) Hey, ZK. You know, sometimes these questions are difficult for us to answer, simply because we don’t usually find ourselves performing the task being asked about. Remove every other line in a text file? Well, ...