<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hey, Scripting Guy! How Can I Count the Words in a Bunch of Microsoft Word Documents?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/21/hey-scripting-guy-how-can-i-count-the-words-in-a-bunch-of-microsoft-word-documents.aspx</link><description>Hey, Scripting Guy! I need to be able to use Windows PowerShell 2.0 to count the number of words in a bunch of Microsoft Word documents. All of the documents are stored in a specific folder, but there are a mixture of Microsoft Word 2010 and Microsoft</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Can I Count the Words in a Bunch of Microsoft Word Documents?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/21/hey-scripting-guy-how-can-i-count-the-words-in-a-bunch-of-microsoft-word-documents.aspx#3339339</link><pubDate>Mon, 21 Jun 2010 07:38:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3339339</guid><dc:creator>Sergey</dc:creator><description>&lt;p&gt;In the fragment:&lt;/p&gt;
&lt;p&gt;$document = $application.documents.open($_.fullname) &lt;/p&gt;
&lt;p&gt;$intWords += $document.words.count &lt;/p&gt;
&lt;p&gt;$intDocs ++ &lt;/p&gt;
&lt;p&gt;It is better to put &amp;quot;$intDocs ++&amp;quot; clause after &amp;quot;$document.close() | out-null&amp;quot; for reducing time of file opening, isn&amp;#39;t it? ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3339339" width="1" height="1"&gt;</description></item></channel></rss>