<?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 List All the Duplicate Files in a Folder and Its Subfolders?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2008/01/10/how-can-i-list-all-the-duplicate-files-in-a-folder-and-its-subfolders.aspx</link><description>Hey, Scripting Guy! How can I list all the duplicate files (that is, files with the same file names) in a folder and its subfolders? -- GK 
 
 Hey, GK. We have to apologize, but you picked a bad day to ask a question. That&amp;rsquo;s because the Scripting</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 List All the Duplicate Files in a Folder and Its Subfolders?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2008/01/10/how-can-i-list-all-the-duplicate-files-in-a-folder-and-its-subfolders.aspx#3512076</link><pubDate>Wed, 01 Aug 2012 20:00:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3512076</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Daniel the easiest way to do it is in the ShowSubFolders subroutine. Put an if / then / else command and if the folder name is equal to windows &amp;nbsp;then you skip it and go to the next folder in the collection. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3512076" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I List All the Duplicate Files in a Folder and Its Subfolders?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2008/01/10/how-can-i-list-all-the-duplicate-files-in-a-folder-and-its-subfolders.aspx#3512044</link><pubDate>Wed, 01 Aug 2012 18:22:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3512044</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Excellent tutorial! It made perfect sense to me.&lt;/p&gt;
&lt;p&gt;I do have a question. &lt;/p&gt;
&lt;p&gt;Can we bypass folders we don&amp;#39;t want to search in? For example, I don&amp;#39;t want the C:\Windows folder to be searched.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3512044" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I List All the Duplicate Files in a Folder and Its Subfolders?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2008/01/10/how-can-i-list-all-the-duplicate-files-in-a-folder-and-its-subfolders.aspx#3417023</link><pubDate>Wed, 30 Mar 2011 04:15:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3417023</guid><dc:creator>Add Disk size</dc:creator><description>&lt;p&gt;I am removing duplicate mp3, with a million track1.mp3 i needed to add filesize to verify. I added it the the sub provided, and it attaches it to the file name. If it is Track1.mp3, but it is a different size, it ignores, same &amp;nbsp;exact size it echo&amp;#39;s. &lt;/p&gt;
&lt;p&gt;Sub ShowSubFolders(Folder)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;For Each Subfolder in Folder.SubFolders&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set objFolder = objFSO.GetFolder(Subfolder.Path)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set colFiles = objFolder.Files&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;For Each objFile in colFiles&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strName = objFile.Name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strPath = objFile.Path&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strName = objfile.Name&amp;#39; &amp;amp; objfile.Size&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Not objDictionary.Exists(strName) Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;objDictionary.Add strName, strPath &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;objDictionary.Item(strName) = objDictionary.Item(strName) &amp;amp; &amp;quot;;&amp;quot; &amp;amp; strPath&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ShowSubFolders Subfolder&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3417023" width="1" height="1"&gt;</description></item></channel></rss>