Showing archive results for 2008

Jun 7, 2008
Post comments count0
Post likes count0

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?

ScriptingGuy1

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 Hey, HW. Well, today is Friday, June 6th, which means that the Scripting Guys have to get ready to head o...

Scripting Guy!scripting techniquesVBScript
Jun 6, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1

Hey, Scripting Guy! I would like to export all my contacts as .MSG files. Is that possible?-- FG 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, because they’re the only ones having a wo...

Scripting Guy!VBScriptOffice
Jun 4, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1

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 Hey, GL. Great question. Here's ...

Scripting Guy!VBScriptOffice
Jun 3, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1

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 names like t...

Scripting Guy!VBScriptstorage
Jun 2, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Leading Zeroes When Displaying a Value in Windows PowerShell?

ScriptingGuy1

Hey, Scripting Guy! I just read your “using calculated properties” PowerShell Tip of the Week, and it addresses a problem I recently had. However, when I got to the last step in your article, I realized the file sizes – and my displayed values – are now left-justified. I’d like to use leading zeroes to align the numbers on the decimal point, but ...

Scripting Guy!Windows PowerShellscripting techniques