Gunit2507
asked on
Copy Files Based on Modified Date
Hello,
I have two folders, 1 named "FolderOne" and the other named "FolderTwo" I am trying to figure out a way to write a .bat file that loops through all the files from FolderOne, while determining if the current file is located in FolderTwo. If it's not located in FolderTwo, then the file should be copied over. If the file is located in FolderTwo, it should only be copied over if the Modified Date of the file in FolderOne is greater then the modified date of the file in FolderTwo.
I have two folders, 1 named "FolderOne" and the other named "FolderTwo" I am trying to figure out a way to write a .bat file that loops through all the files from FolderOne, while determining if the current file is located in FolderTwo. If it's not located in FolderTwo, then the file should be copied over. If the file is located in FolderTwo, it should only be copied over if the Modified Date of the file in FolderOne is greater then the modified date of the file in FolderTwo.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.