1.    08 Jan 2017 #1
    Join Date : Apr 2016
    Posts : 115
    Win 7,8.1 ,10

    Find like files of single folder across whole computer


    I want to use a single folder as a base for file compare but scan the whole computer for like or same file/folder names.My archive folders are as fragmented as my mind. 0-o
      My ComputerSystem Spec
  2.    09 Jan 2017 #2
    Join Date : Feb 2016
    Phoenix, AZ
    Posts : 283
    Windows 10 Pro 1709 16299.192

    You may want to look at CCleaner. It has a function to report duplicate files on an entire disk.
      My ComputersSystem Spec
  3.    09 Jan 2017 #3
    Join Date : Apr 2016
    Posts : 115
    Win 7,8.1 ,10
    Thread Starter

    Quote Originally Posted by storageman View Post
    You may want to look at CCleaner. It has a function to report duplicate files on an entire disk.
    Was hoping one program could work to com pare a folder to all hardrives. Blah
      My ComputerSystem Spec
  4.    09 Jan 2017 #4

    Gosh, this is something that could be scripted out but nothing that I'm aware of a program already supporting. Because the contents of the "base folder" defines a well-circumscribed universe of object to match, it's not a terribly difficult program. The only enhancement I'd suggest is to test hits to see if they're also hard-linked files. That's because each link to a single copy of a file will be reported as a duplicate, even though there's really only one physical copy plus a bunch of links...
    Pseudo-code:
    For all files in "base folder"
    Set search target
    Search all drives for matches to search target
    Check if hit is linked file of some kind
    Report non-linked files as duplicate --or-- take action on duplicate

    HTH,
    --Ed--
      My ComputersSystem Spec
  5.    09 Jan 2017 #5
    Join Date : Apr 2016
    Posts : 115
    Win 7,8.1 ,10
    Thread Starter

    Quote Originally Posted by EdTittel View Post
    Gosh, this is something that could be scripted out but nothing that I'm aware of a program already supporting. Because the contents of the "base folder" defines a well-circumscribed universe of object to match, it's not a terribly difficult program. The only enhancement I'd suggest is to test hits to see if they're also hard-linked files. That's because each link to a single copy of a file will be reported as a duplicate, even though there's really only one physical copy plus a bunch of links...
    Pseudo-code:
    For all files in "base folder"
    Set search target
    Search all drives for matches to search target
    Check if hit is linked file of some kind
    Report non-linked files as duplicate --or-- take action on duplicate

    HTH,
    --Ed--
    Well I only need to roughly match a folder name or the name of the file within the base folder but not the files in the sub folders. Then run a search per HDD letter for a single file type.

    This may be doable with Windows command line search tool but I am unsure, just have it output to a text file but again I am unsure of it all.


    I am a scattered brained fool thus I need esoteric things to un paint myself out of a corner LOL
      My ComputerSystem Spec
  6.    09 Jan 2017 #6

    Yes, you could do it either in a batch (.BAT) file or in a PowerShell (.PS1) script file. I can provide pointers to good reference and resource materials on either or both of these environments, if needed.
    HTH,
    --Ed--
      My ComputersSystem Spec
  7.    09 Jan 2017 #7
    Join Date : Apr 2016
    Posts : 115
    Win 7,8.1 ,10
    Thread Starter

    Quote Originally Posted by EdTittel View Post
    Yes, you could do it either in a batch (.BAT) file or in a PowerShell (.PS1) script file. I can provide pointers to good reference and resource materials on either or both of these environments, if needed.
    HTH,
    --Ed--
    Which would be better for this? PS seems to be replacing bats bit by bit so PS would be if just to learn a bit more about it..
      My ComputerSystem Spec
  8.    09 Jan 2017 #8
    Join Date : Apr 2015
    Posts : 233
    Windows 10 x64 v1703

    Try PS if you want learning experience but the task itself could be much easier if you try using a dup file cleaner. I use DuplicateCleaner from Digital Volcano. I use the Pro version so you'll need check all functionality you need is also in their freeware version. To make searching easy, I'd move the Base Folder to a separate volume so you can compare it to all other volume(s) on computer. It allows for Similar filename as search criteria but never tried that option

    Here's sample snapshots for setting Scan Location and Search Criteria based on v3.2.7. (They have a newer version out i haven't upgraded to yet. imagine it has still more options/flexibility)

    Click image for larger version. 

Name:	Location.jpg 
Views:	1 
Size:	117.1 KB 
ID:	116492Click image for larger version. 

Name:	Criteria.jpg 
Views:	1 
Size:	130.6 KB 
ID:	116493
    Last edited by ComputerGeek; 09 Jan 2017 at 23:56.
      My ComputerSystem Spec
  9.    10 Jan 2017 #9

    Great suggestions, ComputerGeek! I'll have to try this for myself. And FWIW, I also agree with your advice about tackling PowerShell instead of the batch files/command line. MS has clearly indicate that while cmd.exe is not going away, PowerShell is the admin automation platform for today and tomorrow.
    Thanks!
    --Ed--
      My ComputersSystem Spec

 


Similar Threads
Thread Forum
Solved Setup/use a single networked music folder?
Hello, Iím trying to figure out a way to use a single network folder for my music across three local computers. Iíd like to just be able to point the folder to a location on a networked laptop so that I donít have to maintain and use the space on...
Network and Sharing
Search doesn't find files! At least in my Google Drive folder...
Thanks for helping; I press Start I type hello Windows finds files containing 'hello' Problem: I press Start I type the filename of any files I know exist in my Google Drive folder (c:/users/Luke/Google Drive)
General Support
admin user or any user folder not avaliable in the my computer files
while try to write a path for addons such as a game, there is no user available in the folder is anyone else on windows 10 having this problem?
General Support
Does Anyway To Change Start Menu Single Folder Icon Color?
Hello everyone. I wanna change single folder color on the start menu. Not all of them. For example check this screenshot i made it. Thanks. 32071
Customization
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:30.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums