Showing archive results for 2005

Mar 2, 2005
Post comments count0
Post likes count0

How Can I Create a Folder on the Start Menu?

ScriptingGuy1

Hey, Scripting Guy! How can I create a folder on the Start menu? I want the folder to be named the same as the %username% environment variable.-- SB Hey, SB. As we are wont to do, we’re going to break this question down into subtasks. We’ll explain how to do each of these subtasks, then at the end put the pieces together to create a single scrip...

Scripting Guy!VBScriptstorage
Mar 1, 2005
Post comments count0
Post likes count0

How Can I Use a Multi-Select Dialog Box in a Script?

ScriptingGuy1

Hey, Scripting Guy! Awhile back you showed us how to use a File Open dialog box in our scripts. At the same time you said you’d show us how to use a multi-select dialog box. Did you just forget about the multi-select dialog box?-- AA Hey, AA. Yes, we … forgot … about the multi-select dialog box. (Saying we forgot sounds better than saying, “No, ...

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

How Can I Determine if a Users’ Folder Exists on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I determine if the C:\Documents and Settings\%username%\Application Data\Microsoft\Templates folder exists on a computer?-- JM Hey, JM. The FileSystemObject includes a FolderExists method that makes it very easy to check for the existence of a folder. Just pass FolderExists the complete path to the folder and you’ll q...

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

How Can I Sort the Contents of a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file that contains a list of computer names. How can I sort that file alphabetically?-- LR Hey, LR. If we wanted to take the easy way out we’d just tell you, “Sorry, you can’t do that.” And we could get away with that because none of Microsoft’s scripting technologies feature a way to open up and then sort a tex...

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

How Can I Write Binary Data to the Registry?

ScriptingGuy1

Hey, Scripting Guy! How can I write binary data to the registry?-- FG Hey, FG. WMI’s Standard Registry Provider includes a method - SetBinaryData - that makes it relatively easy to write binary data to the registry. There’s one little catch to be aware of, but we’ll let you know what that is. First, though, let’s take a look at a script that wri...

Scripting Guy!VBScriptoperating system