Showing archive results for 2005

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
Feb 4, 2005
Post comments count0
Post likes count0

How Can I Mask Passwords Using an InputBox?

ScriptingGuy1

Hey, Scripting Guy! How can I mask passwords using an InputBox?-- PG Hey, PG. If you’re hoping to mask passwords using a function or method built into WSH or VBScript we’re afraid you’ll be disappointed; neither technology supports password masking. That doesn’t mean you can’t do it, it just means we’ll have to look beyond the core scripting tec...

Scripting Guy!scripting techniquesVBScript
Feb 3, 2005
Post comments count0
Post likes count0

How Can I Determine Whether or Not a Group Has Any Members?

ScriptingGuy1

Hey, Scripting Guy! How can I check a computer and find out whether the Remote Desktop Users group has any members?-- ET Hey, ET. Somewhat surprisingly, ADSI doesn’t have any sort of NumberOfMembers property, a property that could tell you - at a glance - how many members are in a group. But that’s all right, because we can simply iterate throug...

Scripting Guy!VBScriptother Directory Services