Showing results for April 2005 - Page 2 of 5 - Scripting Blog [archived]

Apr 22, 2005
0
0

How Can I Add Two Blank Lines Between Each Line in a Text File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Hey, Scripting Guy! How can I add two blank lines between each line in a text file?-- LW Hey, LW. You know, when we wrote the Microsoft Windows 2000 Scripting Guide we included 4 or 5 examples of how you might work with text files. And then we thought to ourselves, “Well, we’ve pretty much exhausted all the things you can do ...

Scripting Guy!scripting techniquesVBScript
Apr 21, 2005
0
0

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

ScriptingGuy1
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
0
0

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

ScriptingGuy1
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
0
0

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

ScriptingGuy1
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
0
0

How Can I Determine the Version Number of a File?

ScriptingGuy1
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