In a 2 days old directory with a bunch of files & subdirectories, I copied files. It turn out I did the process wrong and I should not have copied anything in that folder. When I learned of the right process I thought it would have attempted to copy the files there (and hopefully ask me what to do with duplicate files and I would have chosen skip) but it did in another folder. So now I'm stuck with plenty of duplicates files and some are large. Both folders should have the same structure but for the 1st folder, the file might have already been there, from 2 days prior.
If possible I'd like for something like the following to happen:
The dates don't need to be checked dynamically, I can enter them as I'm running the command or creating the batch file (if batch files have constants, it would be ideal).
I'm not good with Windows CLI, help would be appreciated
If possible I'd like for something like the following to happen:
- from the R(ight) dir(ectory) find file, check if there's a counterpart in the W(rong) dir
- if so, check the creation date of the W version and
- if old (2 days older) finish for that file
- otherwise (both R & W have same creation date), delete the W counterpart
The dates don't need to be checked dynamically, I can enter them as I'm running the command or creating the batch file (if batch files have constants, it would be ideal).
I'm not good with Windows CLI, help would be appreciated