Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,144 of 42,547    |
|    Big Al to this is what Neil    |
|    Re: List of NOT duplicate files    |
|    14 Mar 23 08:41:25    |
      XPost: alt.comp.os.windows-10       From: Bears@invalid.com              On 3/12/23 15:08, this is what Neil wrote:       > I've been doing this manually but I'm asking if there is a better way.       >       > I have two folders of text files, some of which have duplicate file names.       > The _contents_ of those text files, even with the same name, are different.       > But everything is dependent only on the file names (not on their contents).       >       > Folder A is the master folder containing thousands of A\*.txt files.       > Folder B is the folder whose new files (only!) are added to folder A.       >       > That is, if a B\*.txt file name is already in folder A, it's not added.       > Only if a B\*.txt file name is NOT already in folder A, is it added.       > Folder A always grows but it never contains a duplicate file name from B.       >       > What I need is a list of the files that were in folder B that were not       > duplicates of what was already in folder A when they were copied/moved.       >       > Is there an easy way to obtain that list which is better than how I'm       > manually doing it today, which is to make a list of what file names are       > originally in A and I make a list of the file names in B that are left       > after I copy/move the files over without duplication and then I subtract       > one list from the other.       >       > Is there an easier way to get that list of what file names are in folder B       that aren't yet in folder A when I move just       > those files over?       You might use meld.       meld |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca