Modify docx file dates

Advanced Renamer forum
#1 : 20/09-24 16:20
John Schmerold
John Schmerold
Posts: 2
I want to change file Modifed, Created and last accessed timestamps to reflect the metadata in my docx files. The file name would remain unchanged.

Is this something I can do with Advanced Renamer?


20/09-24 16:20
#2 : 21/09-24 01:36
Delta Foxtrot
Delta Foxtrot
Posts: 285
Reply to #1:

Hi, John,

Well, I was hoping you could use the Timestamp method with the "Filename pattern" option to use patterns like <ExifTool:ModifyDate> to change the datestamps. In practice, and according to how I read the User Guide, that won't work (apparently only a few tags work in the Pattern: field).

You could probably extract the metadata using tags, into the filename, reshape it to work with the timestamp method, then use the Timestamp method to extract it into the appropriate datestamps, then delete the information from the filename; however, that would obviously be a lot more work and you'd have to use several different batches: one to move the metadata into the filename, one to change the datestamps, and one to then remove the date information from your filenames. I've done things like that but I can't say it is a fun process.

TL;DR, you can probably do it but it may or may not be worth the effort. Styb, Miguel, Kim or someone else on here may be able to tell you more. Good luck!

Best,
DF


21/09-24 01:36
#3 : 21/09-24 02:06
John Schmerold
John Schmerold
Posts: 2
Reply to #2:
Thank you - I am going to try creating some Python code to get this done.


21/09-24 02:06
#4 : 21/09-24 03:50
Delta Foxtrot
Delta Foxtrot
Posts: 285
Reply to #3:

Yeah, that's probably the kind of solution I'd go for too.


21/09-24 03:50