Scripting Blog [archived]

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

Hey, Scripting Guy! How Do I Count the Number of Pages in a Group of Office Word Documents?

(image) (image) Hey, Scripting Guy! I am so mad right now, I could just about scream. In fact, if you don't mind, I believe I will scream. We have this stupid printer at work that I have to use to print out a very important report. This printer is rather slow when printing out these reports; it prints out about 30 pages a minute. It has ...

Hey, Scripting Guy! How Do I Count the Number of Words in a Group of Office Word Documents?

(image) (image) Hey, Scripting Guy! I have a folder that contains a number of Microsoft Word documents that are all related to a specific project. I need to know the number of words in all of those Word documents. This is because the project is billable based upon the number of words. In the past, I used Explorer to open each file to get...

Hey, Scripting Guy! How Can I Figure Out Which Version of Microsoft Office Word Is on a Bunch of Computers?

 (image) Hey Scripting Guy! We are currently beta testing Microsoft Office 2010. It is awesome by the way, and I need to figure out what version of Word we have installed on our computers. I know there are different versions, and I would like to get some kind of inventory before we do the upgrade. How can I determine the version of Word ...

Hey, Scripting Guy! How Can I Use Windows PowerShell to Look for and Replace a Word in a Microsoft Word Document?

(image) Hey, Scripting Guy! The week of April 17, 2009, you did a weeklong series of “Hey, Scripting Guy!” articles on regular expressions. I tried to change one of your scripts to open an office Word document that uses Windows PowerShell to look for a particular word. Guess what? It did not work. Instead, it filled my screen with ...

Hey, Scripting Guy! How Can I Convert to Windows PowerShell a VBScript Script That Creates a Table in Office Word?

(image) Hey, Scripting Guy! I was looking through the Office Space Archive and came across a nice article that talks about how to create a table in Office Word. The article is interesting, but I am more interested in how to do this by using Windows PowerShell. Will I be able to translate this script to Windows PowerShell? Or do you have one ...