Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


KickStart to Find and Delete True Duplicate Files

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,53742
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> KickStart to Find and Delete True Duplicate Files
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 KickStart to Find and Delete True Duplicate Files - 11/22/2007 6:34:46 AM   
  asgarcymed

 

Posts: 14
Score: 0
Joined: 10/24/2007
Status: offline
 I want to create a VBS script able to search for true duplicate files (same SIZE + same MD5 HASH/CHECKSUM), and after deleting clones.

Main features: filters to include and/or exclude files and/or folders; total recursive search; automatic deletion of duplicate files according to previously defined rules.

Getting each file's size is relatively easy; unlike getting MD5... Maybe an external ActiveX=COM component could help getting MD5?

The script can write a CSV file with:
Full Path,Size,MD5

But, how to read such CSV file in order to find {same SIZE +(,) same MD5}

Do you have any general guidelines/tips how to do this?

Thanks in advance.

Best regards.
 
 
Post #: 1
 
 RE: KickStart to Find and Delete True Duplicate Files - 11/22/2007 2:49:06 PM   
  dm_4ever


Posts: 2555
Score: 40
Joined: 6/29/2006
From: Orange County, California
Status: offline
http://www.xstandard.com/en/downloads/

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to asgarcymed)
 
 
Post #: 2
 
 RE: KickStart to Find and Delete True Duplicate Files - 11/22/2007 3:29:39 PM   
  asgarcymed

 

Posts: 14
Score: 0
Joined: 10/24/2007
Status: offline
XStandard MD5 Component is very good, and really, I did not know it to exist... Thanks for teaching it! ;)


However, I still have doubts:

The script can write a CSV file with:
Full Path,Size,MD5

But, how to read such CSV file in order to find {same SIZE +(,) same MD5}


Thanks.

Regards.

(in reply to asgarcymed)
 
 
Post #: 3
 
 RE: KickStart to Find and Delete True Duplicate Files - 11/23/2007 10:47:48 AM   
  dm_4ever


Posts: 2555
Score: 40
Joined: 6/29/2006
From: Orange County, California
Status: offline
Seems this question has been asked in at least two more forums and as has been suggested...an array or dictionary would be useful.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to asgarcymed)
 
 
Post #: 4
 
 RE: KickStart to Find and Delete True Duplicate Files - 11/23/2007 12:08:59 PM   
  asgarcymed

 

Posts: 14
Score: 0
Joined: 10/24/2007
Status: offline
That's right...
Usually I like to read many different books about each subject because each author says things in a particular way, and it like seeing many photos taken by different angles... That's also why I post questions in more than 1 forum... I hope you not to be offended with that...

Thanks.

Regards.

(in reply to dm_4ever)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> KickStart to Find and Delete True Duplicate Files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts