p-nand-q.com | home | computer | humor | business | pictures | about

Computer

gtools

detectduplicates

This tool locates duplicates files in a directory, first by checking their filenames and sizes, then by comparing their md5 hashes. Usage:

C:\Projects\2010\GSharpTools\bin\Release>DetectDuplicates.exe /?
DETECTDUPLICATES - Version 3.1.0.0
Freeware written by Gerson Kurz (http://p-nand-q.com)

USAGE: DETECTDUPLICATES.EXE [OPTIONS] DIR {DIR}.
OPTIONS:
    /RECURSIVE: search directories recursively
        /CACHE: cache file name
       /DELETE: delete files (default: list only)
     DIR {DIR}: one or more directories to search

For example, to list all duplicate images in your pictures folder, try:

C:> detectduplicates /RECURSIVE "%HOMEPATH%\Pictures"

which would list all duplicate pictures you have. If you combine that with /DELETE, it will remove them, without warning, so know what you're doing!

You can cache MD5 values using the /CACHE filename argument. On the first run, the database will be created; it will be updated as new MD5 hashes are calculated.

Download

Starting with version 3.0, detectduplicates is part of gtools, which you can download here..

History