Showing archive results for 2008

Mar 6, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Write a Message to All the Empty Files in a Folder?

ScriptingGuy1

Hey, Scripting Guy! I need to search a certain directory for files with a size of 0 KB, then replace the non-existent text in those files with an error message like this one: "File did not save correctly." I have been searching for the answer myself and can't seem to grasp it. Can you help me on this one?-- CE Hey, CE. Have you ever heard the ex...

Scripting Guy!scripting techniquesVBScript
Mar 5, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Verify That a User Entered a Valid Drive Letter?

ScriptingGuy1

Hey, Scripting Guy! How can I make sure that data entered into an InputBox has the form X:, where X is any alphabetic character? That’s important, because I need to use this string to map logical drives in a script. The script should validate any string such as D:, E:, or F: but flag as incorrect any string such as 9:, !:, 22: etc. I have had lim...

Scripting Guy!scripting techniquesVBScript
Mar 4, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Map a Drive Based on the Computer’s Subnet?

ScriptingGuy1

Hey, Scripting Guy! I have a CAD staff that occasionally travels between sites. What I would like to do, in a logon script, is map a set of drives based on their current location, that is, their current subnet. I need the script to first check and see if the drives are already mapped; if so then the script should just leave the drives as-is. If n...

Scripting Guy!VBScriptstorage
Mar 3, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Change a File That’s Found in a Folder and in All Its Top-Level Subfolders?

ScriptingGuy1

Hey, Scripting Guy! I need a little help. I have one top folder with many subfolders ; the subfolders are all top-level subfolders like C:\Scripts\Folder1 and C:\Scripts\Folder2. In each subfolder I have a text file with the same name. I need to open that text file in each folder and change a couple of characters. Is there any way that you could ...

Scripting Guy!VBScriptstorage
Feb 29, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I List All the Users in an OU Who Are Not Members of a Specified Group?

ScriptingGuy1

Hey, Scripting Guy! How can I get a list of all the users in an OU who are not a member of a specified group?-- TJ Hey, TJ. You know, the Scripting Guys are having so much fun with the 2008 Winter Scripting Games that we just can’t bear to see the excitement come to an end; therefore, we’ve decided to extend the Games for a couple mor...

Scripting Guy!VBScriptActive Directory