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

karel
  • 13,390
  • 26
  • 45
  • 52

1 Answers1

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...

JSanchez
  • 1,682
  • 13
  • 10
  • 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? http://stackoverflow.com/questions/16217829/change-modification-time-stamp-with-vbscript – JSanchez Jan 22 '14 at 23:15