0

I accidentally applied/copied wrong timestamps on a list of directories, and I would now like to copy timestamps from a file in the folder and apply it to the directory, e.g.: c:\myfiles\backup\file.txt

I need to apply "date modified" attribute/info from file.txt to c:\myfiles\backup and c:\myfiles

0

You could check the solution offered here which uses a third party utility called File Date Touch to do what you want to do.

Addition: Here you can find a VBScript solution to the above problem. Shouldn't be too difficult to modify the script to accept and read a file containing the file/folder name.

Hope that helps...

  • Thank you! Looks very nifty but requires me to manually extract the attributes and populate. Hoping for a way to duplicate attributes from the file to folder - if it can be scripted that would really make my day! – bludevil Jan 22 '14 at 23:12
  • How about this, then? stackoverflow.com/questions/16217829/… – JSanchez Jan 22 '14 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.