Memo : Find duplicate files in network shares.

Do you have a share floating arround on your network that is basicaly a collection of files that realy need some sorting? But sorting that chaos would mean rebuilding that whole tree? Well you might want to try this 😉

1. Download the Swiss File Knife from SourceForge.
2. Copy the executable and put it on your desktop.
2. Copy this baby to C:\windows by typing the command underneath in run.  

cmd.exe /c “copy c:\documents and settings\%username%\desktop\sfk152.exe c:\windows\sfk.exe”     (xp)
cmd.exe /c “copy c:\users\%username%\desktop\sfk152.exe c:\windows\sfk.exe”  (vista)

3. Open the cmd prompt by typing “cmd.exe” in the run.
4. Open or map a network location using the following command(s).

If authentication as a different user is needed your better off using this one..
net use X: \\the.server.ip.addr\ShareName\ user:domain\username  UPN usernames are also allowed “/user:username@domain.ext”
pushd  \\the.server.ip.addr\ShareName

5. verify that the network location is your current location “C:\ or H:\ in networks is not correct ;).
6. Run the Swiss File Knifecommand and redirect any output by using the following command.

sfk dupfind . > “C:\documents and settings\%username%\desktop\sfkoutput.txt”

Thought this is also a nice one to remember / share 😀

Some Documentation about sfk can be found here…


About Chris Gralike

Momenteel ben ik manager van de afdeling business continuity bij de zakelijke IT dienstverlener AMIS Services BV. Sinds 2003 ben ik actief in de ICT branche. Tussen 2003 en nu heb ik verschillende rollen vervuld. In de rollen: systeem- en netwerkbeheer, system engineer, servicemanager en nu practice manager ben ik in contact gekomen met uiteenlopende technologieën, methodologieën, ideeën, oplossingen en innovaties. Een rijke ervaring waarmee ik de klanten van Conclusion en AMIS elke dag probeer te ondersteunen. Mijn credo: 'Altijd opzoek een win-win tussen business en technologie.'

Posted on December 22, 2008, in Windows Command Line and tagged , , , , , , , , . Bookmark the permalink. 4 Comments.

  1. It might be a wise thing to tweak the command a bit if you have lots of unpacked installers. Results might be “chaotic” if you have thousands “setup.exe” files and “autorun.ini” files floating arround there.

    ps. Tweaking this command is described in detail in the documentation. Just follow the link in this arti.

    sfk dupfind -dir . -file .exe .zip .iso .tar .gz .jar .war .rar > Duplicates.txt

  2. And as post scriptum on that, its best to limit your duplicates search on a per extention basis and generate different search results 🙂

    Last search resulted in 1500+ rules when comparing .exe .zip .rar .gz .tar ofwhich 20 where valid duplicates 🙂

  3. I am unable to understand this post. But well some points are useful for me.

  4. Im sorry to read that, well try to imagine this.

    You have a disk somewhere full of nice funky tools and gadgets. But darn, they are located all over the place in multiple folders and levels.

    This tool can help you to get a view on the possible duplicates that might be shattered all over that disk and might save you some space 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s