Showing tag results for VBScript

Oct 12, 2004
Post comments count0
Post likes count0

How Can I Count the Number of Lines in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of lines in a text file?-- MS Hey, MS. It’s easy to tell that Microsoft’s scripting technologies weren’t written by people who do system administration for a living. Our scripting technologies are jam-packed with features and capabilities, yet we always seem to missing the things that people really ...

Scripting Guy!scripting techniquesVBScript
Oct 11, 2004
Post comments count0
Post likes count0

How Can I Automatically Run a Script Any Time a File is Added to a Folder?

ScriptingGuy1

Hey, Scripting Guy! Is it possible to have a script automatically run any time a file is added to a specific folder?-- MB Hey, WM. Yes, this is possible, thanks to the magic of WMI events, which allow you to write a script to monitor for something of interest (like a file being added to a folder) and then take some action any time an event like ...

Scripting Guy!scripting techniquesVBScript
Oct 8, 2004
Post comments count0
Post likes count0

How Can I Add a Domain User to a Local Administrators Group?

ScriptingGuy1

Hey, Scripting Guy! How can I add a domain user to the local Administrators group in a computer?-- MB Hey, MB. One reason we started doing this column was because we wanted to know more about what system administrators do (and script) on a regular basis. As it is, sitting here in our luxurious penthouse suites atop the Microsoft campus, we’re no...

Scripting Guy!VBScriptActive Directory
Oct 7, 2004
Post comments count0
Post likes count0

How Can I Determine the Owner of a File?

ScriptingGuy1

Hey, Scripting Guy! Is there a way to determine the owner of a file by using a script?-- BD Hey, BD. As a matter of fact there is a way to use a script to determine the owner of the file, though it’s understandable why you might not be able to find that information on your own. After all, there are two main scripting interfaces used for managing...

Scripting Guy!VBScriptsecurity
Oct 6, 2004
Post comments count0
Post likes count0

How Can I Tell Which Scripts are Running on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I tell which scripts are running on a computer?-- NW Hey, NW. This is a question we’re always a little reluctant to answer, because there’s a 50-50 chance you’ll be disappointed with what you hear. If you are running Windows 2000 (or a previous version of Windows), the answer is pretty straightforward: you can’t. A sc...

Scripting Guy!VBScriptoperating system