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,136 of 42,547    |
|    Neil to Herbert Kleebauer    |
|    Re: List of NOT duplicate files    |
|    13 Mar 23 10:14:15    |
      XPost: alt.comp.os.windows-10       From: neil@myplaceofwork.com              On 3/13/2023 1:13 AM, Herbert Kleebauer wrote:       >> 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?       >       > When in directory b use this command (double the % if used in a batch       program):       >       > for %i in (*.txt) do if not exist ..\a\%i copy %i ..\a\       >       > Maybe you want to use "move" instead of "copy"       >       > But maybe the simplest way is to use file explorer and copy all       > files of b/ to a/ and select don't replace existing files.              I should have been clear that I can easily copy (or move) the files       selectively because the native Windows command has an overwrite yes/no.              What I need is a separate _list_ of what was moved (or copied) over.        for %i in (*.txt) do if not exist ..\a\%i copy %i ..\a\        echo %i > list.txt              What I do now is compare time stamps of the resulting combined folder.       But sometimes the time stamps aren't what I would have thought they'd be.       --       best regards,              Neil              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca