Copying file dates but not file content

prophet001
prophet001 used Ask the Experts™
on
Hello. I was wondering if anyone might have any ideas on restoring modified and created dates to a set of files. We had a share go down and worked off of a backup for about a week. That backup wasn't restored with the correct dates and when the server came back online we used the backup set to continue working and left the original set alone.

Long story short, the files that we're working with now all have the modified and created dates of the date the backup was restored. The original share still exists. How do I get the dates from the original set of files to the restored set of files that we're working with.

Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Network Consultant / Engineer
Commented:
I don't have time to test this out but look at using robocopy with /TIMFIX or /COPY:T options. Be sure to test before running it on the actual files.

Author

Commented:
This should work. Thank you!
Jeremy WeisingerSenior Network Consultant / Engineer

Commented:
Glad to help. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial