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…

Advertisements

4 thoughts on “Memo : Find duplicate files in network shares.

  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.

    Example;
    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. 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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s