filecommandprompt

Copy only latest files in Command Prompt


I have two directories with the same files. On the source directory, I always make updates. Now I just want to copy the updated files from the source directory to the destination directory. So it would be like updating files instead of copying all files.

I had also tried on the "Batch script to copy newest file". Though it worked well but it only copies the newest files.

Is there something that could compare the dates of the files from the directories?


Solution

  • Check out RoboCopy, it has switches for filtering files based on dates