Showing tag results for VBScript

Oct 19, 2004
Post comments count0
Post likes count0

How Can I Change a Read-only File to a Read-write File?

ScriptingGuy1

Hey, Scripting Guy! How can I change a read-only file to a read-write file?-- WR Hey, WR. We don’t mean to shock you, but how can you change a read-only file to a read-write file? Why, by using a script, of course! We know: you never saw that coming, did you? As a matter of fact, you can use this script, which changes the file C:\Scripts\Test.vb...

Scripting Guy!VBScriptstorage
Oct 18, 2004
Post comments count0
Post likes count0

How Can I Pick Out and Save Specific Lines in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I’d like to be able to read through a text file, select the lines that begin with a particular word (like Failure), and then save only those lines back to the same text file. Is there any way to do that?-- AC Hey, AC. Hey, AC. For simplicity’s sake, we’re assuming you have a text file that looks similar to this:Success - Oper...

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

How Can I Change a User’s Password?

ScriptingGuy1

Hey, Scripting Guy! How can I change a user’s password using a script?-- GO Hey, GO. You didn’t indicate whether you wanted to change the password for a local user or for an Active Directory user. But that’s OK: the processes are so similar we’ll go ahead and show you how to do both. It’s like getting two Hey, Scripting Guy! columns for the pric...

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

How Can I Determine if My Users Have Certain Files on Their Computers?

ScriptingGuy1

Hey, Scripting Guy! Is it possible to search a computer for .MP3 files or other files my users aren’t supposed to have?-- AK Hey, AK. Once again it’s WMI to the rescue. Using the CIM_DataFile class it’s easy to search a computer for specific file types. Want to know if your users have any .MP3 files lying around? Then just use a script similar t...

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

How Can I Determine the Percentage of Free Space on a Drive?

ScriptingGuy1

Hey, Scripting Guy! I know how to determine the amount of free space on a drive, but how can I determine the percentage of free disk space on a drive?-- MS Hey, JP. You’re right: determining the amount of free disk space on a drive is pretty easy. For example, this simple little script tells you the amount of free space (in bytes) for drive C on...

Scripting Guy!VBScriptstorage