Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Apply a Timeout to an InputBox?

(image) Hey, Scripting Guy! I know that, by using the WSH Popup method, you can time out a message box. Is it possible to do something similar with the InputBox function?-- JR(image) (image) (image) Hey, JR. Greetings from sunny Florida! Well, at least we assume it’s sunny Florida; it’s late Sunday night as the Scripting Guy who writes...

Hey, Scripting Guy! How Can I Add a Line to the Beginning of a Text File And Simultaneously Delete the Last Line of That File?

(image) Hey, Scripting Guy! I have a script that adds a line to a log file. Each time I add a new line to this file I would like to delete the last line in the file; that way I always have 20 lines in the file. Can you help me get this to work?-- HW(image) (image) (image) Hey, HW. Well, today is Friday, June 6th, which means that the ...

Hey, Scripting Guy! How Can I Save My Outlook Contacts as .MSG Files?

(image) Hey, Scripting Guy! I would like to export all my contacts as .MSG files. Is that possible?-- FG(image) (image) (image) Hey, FG. You know, the other day the Scripting Guy who writes this column was watching his … beloved … Seattle Mariners play the Angels. (The Scripting Guy who writes this column enjoys watching the Mariners, ...

Hey, Scripting Guy! How Can I Determine the Largest Value in a Table Column in Microsoft Office Word?

(image) Hey, Scripting Guy! I have a script that automatically creates a Microsoft Office Word table that features several columns of data. At the bottom of each column I need to list the largest number that can be found in that column. What’s the easiest way to determine the largest value in each column in a table?-- GL(image) (image) (...

Hey, Scripting Guy! How Can I Move Files Based on Their Three-Part File Name?

(image) Hey, Scripting Guy! I have a folder filled with invoice files. Each of these files has been given a file name based on a specific three-part naming convention: a three-letter abbreviation of the vendor name; the invoice date (e.g., 06032008) ; and the invoice number (which can be of varying length). In other words, all the files have...