Showing results for November 2004 - Scripting Blog [archived]

Nov 30, 2004
0
0

Can I Edit .INI Files Using a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Can I edit.INI files using a script?-- MZ 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 we get into the whys and wherefores ...

Scripting Guy!scripting techniquesVBScript
Nov 29, 2004
0
0

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

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I understand how to use CDO to send an email, but how do I include an attachment with that email?-- RT 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, playing tackle football with a ...

Scripting Guy!VBScriptmessaging and communication
Nov 24, 2004
0
0

How Can I Retrieve Disk Quota Information for a Single User?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I retrieve disk quota information for a single user?-- AB Hey, AB. There are a couple different ways to get disk quota information for a single user, depending on which version of Windows you have installed on the computer. If you’re running Windows XP or Windows 2003, you can retrieve disk quota information for a ...

Scripting Guy!VBScriptstorage
Nov 23, 2004
0
0

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

ScriptingGuy1
ScriptingGuy1

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 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 192.168.1.1 to 192.168.1.254. You’d...

Scripting Guy!scripting techniquesVBScript
Nov 22, 2004
0
0

How Can I List the Members of a Group in Alphabetical Order?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script that returns the names of all the users in an Active Directory group. How can I sort those names in alphabetical order?-- JW Hey, JW. Ah, yes, sorting data: the bane of script writers everywhere. Unfortunately, VBScript doesn’t have a built-in sorting mechanism, and neither does ADSI. Consequently, most ...

Scripting Guy!VBScriptActive Directory