Scripting Blog [archived]

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

Can I Edit .INI Files Using a Script?

(image) Hey, Scripting Guy! Can I edit.INI files using a script?-- MZ(image) (image) (image) Hey, MZ. Yes, you can edit .INI files (or any kind of text files, for that matter) using a script. The method you have to use might not be the most elegant process in the world, but itโ€™ll work. And thatโ€™s all we really care about, right? Before...

How Can I Attach a File to an Email Sent Using CDO?

(image) Hey, Scripting Guy! I understand how to use CDO to send an email, but how do I include an attachment with that email?-- RT(image) (image) (image) Hey, RT. And, incidentally, thanks for this question. At least one of the Scripting Guys spent most of his Thanksgiving weekend eating and, on the rare occasions when he wasnโ€™t eating, ...

How Can I Run a Script Against a Range of IP Addresses?

(image) Hey, Scripting Guy! Iโ€™d like to run a script against all the computers on a subnet. Is there a way to do that without having to hardcode all the IP addresses into the script?-- RB(image) (image) (image) Hey, RB. Based on your email, it sounds like you have a setup similar to this: you have a subnet with IP addresses ranging from ...