<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PowerShell: Quick Way to Check for a File Type on a Drive or Directory</title>
	<atom:link href="http://www.tech-recipes.com/rx/2397/powershell_quick_way_check_file_type/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/2397/powershell_quick_way_check_file_type/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 02:44:39 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/2397/powershell_quick_way_check_file_type/comment-page-1/#comment-3392</link>
		<dc:creator></dc:creator>
		<pubDate>Sat, 09 Jun 2007 20:31:08 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3392</guid>
		<description>does it have to be powershell? without installing powershell, you can use vbscript
&lt;code&gt;Set objFSO = CreateObject&#40;&quot;Scripting.FilesyStemObject&quot;&#41;
myFolder=&quot;c&#58;&quot;
Set objFolder = objFSO.GetFolder&#40;myFolder&#41;
GoSubFolders objFolder

Sub GoSubFolders &#40;objDIR&#41;
  If objDIR &lt;&gt; &quot;System Volume Information&quot; Then
    MainSub objDIR
    For Each eFolder in objDIR.SubFolders
      GoSubFolders eFolder
    Next
  End If
  
End Sub

Sub MainSub &#40;objDIR&#41;
  For Each efile in objDIR.Files
    WScript.Echo &quot;File &quot;, eFile, &quot;is a &quot;, eFile.Type
  Next
End Sub
&lt;/code&gt;

save it as .vbs extension, type cscript myscript.vbs</description>
		<content:encoded><![CDATA[<p>does it have to be powershell? without installing powershell, you can use vbscript<br />
<code>Set objFSO = CreateObject&#40;&quot;Scripting.FilesyStemObject&quot;&#41;<br />
myFolder=&quot;c&#58;&quot;<br />
Set objFolder = objFSO.GetFolder&#40;myFolder&#41;<br />
GoSubFolders objFolder</p>
<p>Sub GoSubFolders &#40;objDIR&#41;<br />
  If objDIR &lt;&gt; &quot;System Volume Information&quot; Then<br />
    MainSub objDIR<br />
    For Each eFolder in objDIR.SubFolders<br />
      GoSubFolders eFolder<br />
    Next<br />
  End If</p>
<p>End Sub</p>
<p>Sub MainSub &#40;objDIR&#41;<br />
  For Each efile in objDIR.Files<br />
    WScript.Echo &quot;File &quot;, eFile, &quot;is a &quot;, eFile.Type<br />
  Next<br />
End Sub<br />
</code></p>
<p>save it as .vbs extension, type cscript myscript.vbs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/2397/powershell_quick_way_check_file_type/comment-page-1/#comment-3391</link>
		<dc:creator></dc:creator>
		<pubDate>Sat, 09 Jun 2007 19:21:53 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3391</guid>
		<description>Can this be done recursively? In other words, can I test-path for all files in the path and every subdirectory of the path?

btw, thanks for a great blog.</description>
		<content:encoded><![CDATA[<p>Can this be done recursively? In other words, can I test-path for all files in the path and every subdirectory of the path?</p>
<p>btw, thanks for a great blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
