Showing tag results for storage

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 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
Oct 1, 2004
Post comments count0
Post likes count0

How Can I Write to the Comments Field of a Document?

ScriptingGuy1

Hey, Scripting Guy! Can I add text to the Comments field of a file using a script?-- EF Hey, EF. For those of you who aren’t sure what EF is referring to, right-click a document in Windows Explorer and then click Properties. In the dialog box that appears, click on the Summary tab. See the text box labeled Comments? That’s the field EF would lik...

Scripting Guy!VBScriptstorage
Sep 13, 2004
Post comments count0
Post likes count0

Why Doesn't My LIKE Query Work on Windows 2000?

ScriptingGuy1

Hey, Scripting Guy! I’m trying to use a LIKE query in my WMI scripts. The query works fine on Windows XP computers, but I can’t get it work on Windows 2000 computers. Do you know what I’m doing wrong?-- GS Hey, GS. Actually you’re not doing anything wrong. You’re using a script similar to this, which uses the LIKE operator to search for all the fi...

Scripting Guy!scripting techniquesVBScript