Showing tag results for Scripting Guy!

Apr 18, 2005
Post comments count0
Post likes count0

How Can I Determine the Version Number of a File?

ScriptingGuy1

Hey, Scripting Guy! How can I extract version information for a DLL or other type of file?-- DM Hey, DM. There at least two ways we know of to retrieve the version information for a file: one designed for working on the local computer and one that can work either locally or remotely. Being the kind of guys that we are, we’ll show you both soluti...

Scripting Guy!scripting techniquesVBScript
Apr 15, 2005
Post comments count0
Post likes count0

How Can I Search a Text File for 9-Digit Numbers?

ScriptingGuy1

Hey, Scripting Guy! How can I search for user names in a text file? In my case, the user names all consist of 9 digits, although they can be any 9 digits.-- GG Hey, GG. Interesting question. You want to search for 9-digit numbers (like 123456789) in a text file; the only problem is that these could be any 9-digit numbers. And that definitely is ...

Scripting Guy!scripting techniquesVBScript
Apr 14, 2005
Post comments count0
Post likes count0

How Can I Display a Multi-Valued Attribute Returned from an Active Directory Search?

ScriptingGuy1

Hey, Scripting Guy! How can I display a multi-valued attribute that I get back when using ADO to search Active Directory?-- ES Hey, ES. For the most part Active Directory is a script writer’s paradise; with very few exceptions anything you can do using the Active Directory snap-ins and GUI tools you can also do using a script. Of course, that do...

Scripting Guy!VBScriptActive Directory
Apr 13, 2005
Post comments count0
Post likes count0

How Can I Eliminate Duplicate Names in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file that contains a bunch of names. How can I read through that text file and eliminate all the duplicate names?-- MW Hey, MW. We’re assuming you have a text file that looks something like this:Ken Myer Dean Tsaltas Jonathan Haas Ken Myer Dean Tsaltas Syed Abbas Gail Erickson Carol Phillips Dean Tsaltas Dylan M...

Scripting Guy!scripting techniquesVBScript
Apr 12, 2005
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Bind to a User Account Using Something Other Than the CN Attribute?

ScriptingGuy1

Hey, Scripting Guy! Can I bind to an Active Directory account using the user’s mailNickname or their sAMAccoutName, something other than the CN?-- MB Hey, MB. When you bind to an account in Active Directory, you need to pass GetObject the account’s ADsPath. That means you need to use a line of code similar to this: The ADsPath is act...

Scripting Guy!VBScriptActive Directory