Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Jun 2014
    Posts
    287
    Thanks
    11
    Thanked 6 Times in 5 Posts

    Selectively Remove Duplicate Files?

    Somehow I managed to merge two folders together and many of the files got duplicated, with (1) appended to the duplicates.
    These are scattered over all over many sub-folders etc etc. I started trying to remove the duplicates by hand, but decided life is too short.
    Is there a way to selectively choose all the duplicates by tagging them based on the (1) appended to each, then delete them?
    Is there a command line I can run that will do this?

    I am running Win7 Hp x 64 bit.

    Thanks,
    rstew

  2. #2
    jwoods
    Guest
    There are several duplicate file finder utilities.

    CCleaner has one under the Tools section.

    Auslogics has a stand-alone utility.

  3. #3
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 986 Times in 916 Posts
    Are all the files with (1) on the end duplicates and safe to delete? If so you could use something like this from the parent folder to delete them.
    Code:
    del *(1).* /s
    If you are not feeling that brave you could move the files to a temporary directory. First create a temporary directory that is not under the parent directory you are cleaning. Then run this.
    Code:
    for /f %x in ('dir /b /s *(1")".*') do move %x d:\tempdir\
    cheers, Paul

  4. #4
    3 Star Lounger
    Join Date
    Jun 2014
    Posts
    287
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by Paul T View Post
    Are all the files with (1) on the end duplicates and safe to delete? If so you could use something like this from the parent folder to delete them.
    Code:
    del *(1).* /s
    If you are not feeling that brave you could move the files to a temporary directory. First create a temporary directory that is not under the parent directory you are cleaning. Then run this.
    Code:
    for /f %x in ('dir /b /s *(1")".*') do move %x d:\tempdir\
    cheers, Paul
    Paul
    That first option is kind of what I was thinking. A throwback to the old dos days!
    I think I will copy the folder to a usb stick and run it from there, then if it all looks good, copy it back (after deleting the original).
    It's all good! Thanks!
    rstew

  5. #5
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,733
    Thanks
    95
    Thanked 128 Times in 125 Posts
    FileSeek [free or fee] can be set to locate such files, and, one can delete all the (1)s if desired.
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

  6. #6
    3 Star Lounger
    Join Date
    Jun 2014
    Posts
    287
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by RolandJS View Post
    FileSeek [free or fee] can be set to locate such files, and, one can delete all the (1)s if desired.
    Roland;
    I downloaded and ran Fileseek, and it found all the *(1).* files. Maybe I am stupid, but I don't see how you delete them.
    Is this a feature only in the paid version I wonder?

    Thanks,
    rstew

  7. #7
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,725
    Thanks
    147
    Thanked 156 Times in 149 Posts
    I use Everything http://www.voidtools.com/ to search for files. You can use it to search for (1). The list comes up instantly and you can select whichever ones you want and delete them. There are options for searching in specific folders as well.

  8. #8
    3 Star Lounger
    Join Date
    Jun 2014
    Posts
    287
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Quote Originally Posted by rstew View Post
    Roland;
    I downloaded and ran Fileseek, and it found all the *(1).* files. Maybe I am stupid, but I don't see how you delete them.
    Is this a feature only in the paid version I wonder?

    Thanks,
    rstew
    Ok I figured out how to delete them. Turned out to be quite easy!
    Thanks to all for the help.

    rstew

  9. #9
    5 Star Lounger
    Join Date
    Mar 2010
    Location
    east coast
    Posts
    701
    Thanks
    89
    Thanked 8 Times in 8 Posts
    fwiw

    my old roommate was a power guru and made his living with pcs and aps for many many years (still is part time)

    his advice was NEVER EVER DELETE A FILE

    while it is usually safe there is no reason to risk it at all.
    storage is cheap
    just keep the files around and ignore them

    Quote Originally Posted by rstew View Post
    Somehow I managed to merge two folders together and many of the files got duplicated, with (1) appended to the duplicates.
    These are scattered over all over many sub-folders etc etc. I started trying to remove the duplicates by hand, but decided life is too short.
    Is there a way to selectively choose all the duplicates by tagging them based on the (1) appended to each, then delete them?
    Is there a command line I can run that will do this?

    I am running Win7 Hp x 64 bit.

    Thanks,
    rstew

  10. #10
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,733
    Thanks
    95
    Thanked 128 Times in 125 Posts
    speedball, I think keeping 1-2 copies of files is probably sufficient. Most of us are not going to maintain multible copies of every single file we ever ran across or run across.
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •