Showing archive results for 2005

Apr 21, 2005
Post comments count0
Post likes count0

Why Does My Performance Monitoring Script Keep Returning the Same Incorrect Values?

ScriptingGuy1

Hey, Scripting Guy! I’m using a script to monitor process performance, but every time I run the script the percent processor time for all the processes comes out as 0. What am I doing wrong?-- JL Hey, JL. We’ve simplified your script a bit to better illustrate the problem you’re running into. (And don’t feel bad: this is a very common problem pe...

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

How Can I Pass Command-Line Variables to an HTA When It Starts?

ScriptingGuy1

Hey, Scripting Guy! How can I pass command-line variables to an HTA when it starts?-- DM Hey, DM. Ok, we admit it: you almost had us on this one. (Not that being able to stump the Scripting Guys is particularly hard, mind you.) We had no idea whether you could pass command-line variables to an HTA, and even less idea how we could capture those c...

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

How Can I Tell Whether a Group Member is a User, a Computer, or Another Group?

ScriptingGuy1

Hey, Scripting Guy! How can I tell whether the member of a group is a user, a computer, or another group?-- ON Hey, ON. Interesting question and - to tell you the truth - one we’d never really thought about. It’s easy enough to list all the members of a group; for example, here’s a script that reports back all the members of the Finance Managers...

Scripting Guy!VBScriptActive Directory
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