Showing results for March 2008 - Page 4 of 4 - Scripting Blog [archived]

Mar 8, 2008
0
0

Hey, Scripting Guy! How Can I Get an HTA to Remember Its Previous Position Onscreen?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to get an HTA to remember its previous position onscreen? Some of my users are very particular about moving an HTA to a specific spot on the screen, then wanting it to reappear at that same spot the next time they run the application.-- DF Hey, DF. You know, in the past few weeks there has been a spate of ...

Scripting Guy!scripting techniquesVBScript
Mar 6, 2008
0
0

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

ScriptingGuy1
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 ...

Scripting Guy!scripting techniquesVBScript
Mar 5, 2008
0
0

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

ScriptingGuy1
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 ...

Scripting Guy!scripting techniquesVBScript
Mar 4, 2008
0
0

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

ScriptingGuy1
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 ...

Scripting Guy!VBScriptstorage
Mar 3, 2008
0
0

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

ScriptingGuy1
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