Showing tag results for Scripting Guy!

Feb 11, 2005
Post comments count0
Post likes count0

How Can I Use a Wildcard Character to Delete Folders?

ScriptingGuy1

Hey, Scripting Guy! How can I delete folders based on a wildcard character? For example, how can I delete all the folders whose name starts with December?-- RR Hey, RR. Well, that depends. If you’re running Windows XP or Windows Server 2003, you can actually use a wildcard character to identify and then delete all the folders whose name starts w...

Scripting Guy!VBScriptstorage
Feb 10, 2005
Post comments count0
Post likes count0

How Can I Disable the Guest Account on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I determine whether or not the Guest account is enabled on a computer and, if it is, disable it?-- PR Hey, PR. At last: a question for which there is a very simple, very straightforward answer. This isn’t to minimize the importance of the task: in general, it’s highly recommended that you disable the Guest account on ...

Scripting Guy!VBScriptsecurity
Feb 9, 2005
Post comments count0
Post likes count0

How Can I Change the Target of a Desktop Shortcut?

ScriptingGuy1

Hey, Scripting Guy! How can I change the target that a desktop shortcut points to? For example, if I move a file from one server to another, I’d like be able to use a script to change the shortcut that points to that file.-- AK Hey, AK. This is an example of a scripting problem that’s actually pretty easy to solve, provided you know where to loo...

Scripting Guy!VBScriptdesktop management
Feb 8, 2005
Post comments count0
Post likes count0

How Can I Find and Replace Text in a Text File?

ScriptingGuy1

Hey, Scripting Guy! From the command line, how can I use a script to open a file and replace text; for example, how can I replace all instances of “Jim” with “James”?-- JW Hey, JW. As we’ve found out numerous times when dealing with text files, there is no obvious way to do this; that is, there is no ReplaceText command that can open a text file...

Scripting Guy!scripting techniquesVBScript
Feb 7, 2005
Post comments count2
Post likes count1

How Can I Password-Protect an Excel Spreadsheet?

ScriptingGuy1

Hey, Scripting Guy! In a previous column, you told us a couple different ways to save Excel spreadsheets. In that column, you said that one of the things you could do with the SaveAs method was password-protect a spreadsheet. However, you didn’t show us an example of this. How can I use a script to password-protect a spreadsheet?-- MC Hey, MC. W...

Scripting Guy!VBScriptOffice