Showing archive results for 2007

Oct 2, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Automatically Move the Focus as Users Type in an HTA?

ScriptingGuy1

I have an HTA that we use for creating and modifying user accounts. In that HTA we have a couple of phone number fields; each of these fields consists of three text boxes (one for the area code and two for the phone number). I’d like to set this up so that, as soon as someone has typed three digits into the area code box the cursor automatically ...

Scripting Guy!scripting techniquesVBScript
Oct 1, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Search a Text File for Terms Read In From a Second Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file that has a list of search terms in it. I would like to write a script that can search for each of those terms in a second file, and then report back any of the terms that couldn’t be found in that second file. How do I do that?-- PH Hey, PH. You know, this is a good day for the Scripting Guy who writes this...

Scripting Guy!scripting techniquesVBScript
Sep 29, 2007
Post comments count0
Post likes count0

How Can I Retrieve Field Values in a Microsoft Word Document?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of Word documents that include fields like LastSavedBy. How can I write a script that retrieves the current values for these fields?-- OS Hey, OS. You know, the other night the Scripting Guy who writes this column was watching TV when he saw an ad for a new Monopoly game: Monopoly, the Electronic Banking Editio...

Scripting Guy!VBScriptOffice
Sep 28, 2007
Post comments count0
Post likes count0

How Can I Retrieve IP Addresses (and Only IP Addresses) From a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a script that uses Netsh.exe to return information from my DHCP servers; all that information is then written to a text file. That works great, except that I need to be able to parse the data and pull out any IP addresses included in that information. How can I write a script that extracts just the IP addresses from a t...

Scripting Guy!scripting techniquesVBScript
Sep 27, 2007
Post comments count0
Post likes count0

How Can I Create a New Folder in Microsoft Outlook?

ScriptingGuy1

Hey, Scripting Guy! How can I create a new folder in Microsoft Outlook?-- TY Hey, TY. You know, this is an exciting time here at Microsoft; after all, last night at midnight we officially released one of the most highly-anticipated software products ever created: a script that can create a new folder in Microsoft Outlook! Oh, wait; sorry. We’re ...

Scripting Guy!VBScriptOffice