Link to home
Create AccountLog in
Avatar of Gunit2507
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.
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer