Compare, Regardless of File Structure
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 61
- Joined: 2018-03-28, 20:13 UTC
Compare, Regardless of File Structure
I will try my best to explain.
I would like to compare two directories that have totally different subdirectory structures. All I care about is that the files in the left side have duplicates in the right side - I don't care what subdirectories they're in.
So, for example:
c:\Files\Payroll\Ghisler.docx
and
d:\Files\Personnel\Discipline Files\Severance\Ghisler.docx
would be a match.
(Essentially, what I've done is, I've reorganized about 2500 different files, and I just want to make sure that I've reorganized all of them, comparing to the backup. No File Left Behind.)
Thanks!
I would like to compare two directories that have totally different subdirectory structures. All I care about is that the files in the left side have duplicates in the right side - I don't care what subdirectories they're in.
So, for example:
c:\Files\Payroll\Ghisler.docx
and
d:\Files\Personnel\Discipline Files\Severance\Ghisler.docx
would be a match.
(Essentially, what I've done is, I've reorganized about 2500 different files, and I just want to make sure that I've reorganized all of them, comparing to the backup. No File Left Behind.)
Thanks!
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
-
- Junior Member
- Posts: 83
- Joined: 2010-04-19, 15:50 UTC
Re: Compare, Regardless of File Structure
Assuming you have not changed the content of the files (you just reorganize them in different folder structure), and that you do not have duplicates file names, MAYBE you can use a very primitive way, just to ensure all files exists in the destination tree.
Stand on top of the source tree and do "search"(alt-f7) while in advanced tab mark "Attributes" and un-mark "Directory".
Then start search. At the end press "feed to listbox".
Then create new directory and copy to it all the files in the listbox.
Then do the same for the destination tree. Now you can compare the 2 new directories.
Very low solution but maybe it will suit you.
Stand on top of the source tree and do "search"(alt-f7) while in advanced tab mark "Attributes" and un-mark "Directory".
Then start search. At the end press "feed to listbox".
Then create new directory and copy to it all the files in the listbox.
Then do the same for the destination tree. Now you can compare the 2 new directories.
Very low solution but maybe it will suit you.
Re: Compare, Regardless of File Structure
Alonzo Mosley,
Ctrl-B, Tab, Ctrl-B, Shift-F2? Not tested.
Roman
Ctrl-B, Tab, Ctrl-B, Shift-F2? Not tested.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
-
- Junior Member
- Posts: 61
- Joined: 2018-03-28, 20:13 UTC
Re: Compare, Regardless of File Structure
Oh, I'm sure there are dupes.
I'm a little leery of copying everything into ANOTHER directory - I'm trying to prune down the number of files, copies, etc. Even temporarily it seems fraught?
Not sure from what screens I do your untested typing, Hacker, but will report back. Thanks
I'm a little leery of copying everything into ANOTHER directory - I'm trying to prune down the number of files, copies, etc. Even temporarily it seems fraught?
Not sure from what screens I do your untested typing, Hacker, but will report back. Thanks
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Re: Compare, Regardless of File Structure
2Alonzo Mosley
With Shift+F2 by Hacker's method you will see missing (omitted) files. If you want to find and delete dupes, you should use Alt+F7.
With Shift+F2 by Hacker's method you will see missing (omitted) files. If you want to find and delete dupes, you should use Alt+F7.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Compare, Regardless of File Structure
Usher,
I understood the goal is to check if all files in the left structure are also in the right structure somewhere(?) The steps I mentioned should highlight different files. Pressing Num*, Tab, Num* should highlight all files that look the same. Hope that helps somehow.
Roman
I understood the goal is to check if all files in the left structure are also in the right structure somewhere(?) The steps I mentioned should highlight different files. Pressing Num*, Tab, Num* should highlight all files that look the same. Hope that helps somehow.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Compare, Regardless of File Structure
2Hacker
Please, don't try to explain me what I did many times it the past. It's highly possible that some file may be copied more than once ("there are dupes") and some (missing, omitted) files aren't copied at all.
After using Shift+F2 I know that highlighted different files in this case are files omitted during copying.
But I also know that NONE of duplicated copies will be highlighted. You can prepare test folders, then use Num* on both sides and count files. That's why additional Alt+F7 in the destination folder ("on the left") is needed.
Please, don't try to explain me what I did many times it the past. It's highly possible that some file may be copied more than once ("there are dupes") and some (missing, omitted) files aren't copied at all.
After using Shift+F2 I know that highlighted different files in this case are files omitted during copying.
But I also know that NONE of duplicated copies will be highlighted. You can prepare test folders, then use Num* on both sides and count files. That's why additional Alt+F7 in the destination folder ("on the left") is needed.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Compare, Regardless of File Structure
Usher,
Roman
Well, you were talking about deleting duplicates while as I understood the OP he is trying to make sure there actually are duplicates of each file. Not sure where I went wrong with my post. Anyways, I hope the OP finds the solution he's looking for.don't try to explain me what I did many times it the past
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
-
- Junior Member
- Posts: 61
- Joined: 2018-03-28, 20:13 UTC
Re: Compare, Regardless of File Structure
No fighting in front of the kids!
Yeah, I was trying to make sure as I moved a ton of files around that I didn't miss any - so I just wanted a raw alpha list of all files in one drive on the left and of the other drive on the right, so I could make sure.
Thanks
Yeah, I was trying to make sure as I moved a ton of files around that I didn't miss any - so I just wanted a raw alpha list of all files in one drive on the left and of the other drive on the right, so I could make sure.
Thanks
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Re: Compare, Regardless of File Structure
Open a cmd window, go to the top directory and perform the command
for /f "delims=" %a in ('dir/a-d /s /b ') do @echo %~nxa >>dir.log
You get a full list of all files. Do that also for the other directory. Sort the dir.log files with
sort dir.log /o dir1.log
Be aware that dir.log is mentioned in dir1.log
Compare the dir1.log files in TC.
for /f "delims=" %a in ('dir/a-d /s /b ') do @echo %~nxa >>dir.log
You get a full list of all files. Do that also for the other directory. Sort the dir.log files with
sort dir.log /o dir1.log
Be aware that dir.log is mentioned in dir1.log
Compare the dir1.log files in TC.
Re: Compare, Regardless of File Structure
So Alonzo
could you please enlighten us which solution you found the best and why?
could you please enlighten us which solution you found the best and why?
Regards, Brahman
Win10 & 11 Pro x64
Win10 & 11 Pro x64