FindDuplicates is a command line utility to find duplicate files in one or several paths on a computer.
Optionally, it can move duplicate files to the recycle bin or remove them permanently. (Use at your own risk!)
USAGE: FindDuplicates [path] [/option(s)] FindDuplicates [path1] [path2] [pathn] [/option(s)]
/? = Displays this help screen and exits with code 1. /0 = Include files with 0 length. /B = Show file sizes to test. /DD = Delete all duplicates. /NR = Don't move files to the recycle bin. /D = List all directory names, not just the top one. /E = Only list files with 0 length. /H = Include hidden files. /L = List all read files. /O = Show the sorted file list. /S = Check subdirectories. /T = List files to test. /V = Verbose ('Comparing files...' etc). /Q = Quiet mode (overrides any other output parameter). /Y = Answer 'Do you want to delete...' questions quietly with 'Y'.
Messages and errors go to stdout, found duplicates go to stderr. Quiet mode does not suppress stderr.
RETURN VALUES: 0 = No duplicates found. 1 = Missing or illegal parameter(s). 2 = Not enough memory. 3 = Folder not found. 5 = Duplicate files found.
EXAMPLES:
FindDuplicates C:\Windows /S/Q Scan subdirectories and use quiet mode.
FindDuplicates C:\Windows /S 2>Duplicates.txt Saves all found duplicates in 'Duplicates.txt'.
FindDuplicates C:\Windows /S 2>dups.txt>out.txt Duplicates in dups.txt, out.txt contains the log.
FindDuplicates C:\Windows /S/B 2>dups.txt>out.txt Same but displays the file sizes to check.
FindDuplicates C:\Data1 C:\Data2 /S/V Examines both folders in verbose mode.
Download FindDuplicates.exe (0.07 MiB = 68.0 KiB = 69,632 bytes) Download FindDuplicates.zip (0.03 MiB = 33.7 KiB = 34,555 bytes)
Special installation is not required. Simply download the executable file FindDuplicates.exe and place it in a folder of your choice. Alternatively, the zipped version can be downloaded and extracted.
To use the software throughout the system it is recommended that this folder is included in the PATH variable. The easiest way of achieving this is by placing the file FindDuplicates.exe in the Windows system folder (for example C:\Windows\System32 on Windows XP).
Download FindDuplicates.exe (0.07 MiB = 68.0 KiB = 69,632 bytes) Download FindDuplicates.zip (0.03 MiB = 33.7 KiB = 34,555 bytes)
USAGE: FindDuplicates [path] [/option(s)] FindDuplicates [path1] [path2] [pathn] [/option(s)]
FindDuplicates accepts one or more paths to check for duplicate files.
Files are considered duplicate when their contents are identical. Unlike other duplicate files finders, FindDuplicates does not care about file timestamps or any other unreliable information. Files are compared byte by byte (of course a bit more sophisticated). Again, that means files are treated as being duplicate files when their contents are identical, no more, no less.
The software starts by comparing the largest files first, and then checks the smaller file sizes. If two files don't have the same file size they can't be identical. Each file is read in blocks to avoid more read operations than necessary.
Since FindDuplicates doesn't show a progress bar to save time the "best guess" for the remainder of the process is to display the files' sizes it currently compares.
When more then one path is provided the software checks for duplicates between all of them. For example, if there's a folder 'folder1' and another folder 'folder2' with an identical file in each folder, it is found.
Assuming the two files are identical, folder1\file1.dat folder2\file2.dat
FindDuplicates would then report: (1) 21883418 octets, folder1\file1.dat (2) 21883418 octets, folder2\file2.dat
/? = Displays this help screen and exits with code 1.
Displays a help screen with all supported parameters
/0 = Include files with 0 length.
Since files with a file size of 0 don't have any contents, all files with a size of zero are automatically reported as duplicate files. Use this option with great care!
/B = Show file sizes to test.
Displays messages with file sizes the software is currently comparing. FindDuplicates starts with the larger files first. This is the "best guess" to estimate the remainder of the process because the software does not show a progress bar.
/DD = Delete all duplicates.
Deletes duplicate files. The software removes the duplicate with the longer path/file name. If both path/file names have the same length the second one is removed. Use with care!
Example: (1) 21883418 octets, folder1\file1.dat (2) 21883418 octets, folder2\file2.dat
This would remove the file file2.dat in folder2.
/NR = Don't move files to the recycle bin.
By default, FindDuplicates moves files to the recycle bin instead of deleting them immediately. The recycle bin is handled by Windows automatically. If it cannot hold more files least recent files are removed permanently. Use with care!
/D = List all directory names, not just the top one.
Displays a list with all folder names to walk through.
/E = Only list files with 0 length.
Displays a list with all files that have a file size of 0. This parameter can be used to identify files FindDuplicates would remove because of their file size is 0.
/H = Include hidden files.
Includes hidden files in the comparison and deletion process.
/L = List all read files.
Displays a list with all read files before the actual comparison process starts.
/O = Show the sorted file list.
Before FindDuplicates starts comparing files it sorts them by file sizes. Larger files are put at the top and smaller files at the end. This command line parameter displays the sorted list before the actual comparison process starts.
/S = Check subdirectories.
All subfolders are included in the comparison/deletion process.
/T = List files to test.
Displays a complete list with all files to compare.
/V = Verbose ('Comparing files...' etc).
Displays a message for each file comparison.
/Q = Quiet mode (overrides any other output parameter).
Make the software quiet.
/Y = Answer 'Do you want to delete...' questions quietly with 'Y'.
Useful with /DD and /NR. When /Y is provided FindDuplicates does not ask for confirmations when deleting files or when moving them to the recycle bin. Use with care!
There are no release notes yet. Version 1.2.7. is the first version published.
|