Hi I have a load of jpg and avi files in sub folders which are named with the date the files were created. Unfortunately the files themselves have incorrect creation dates which I would like to batch change to that of the folder names.
I've had a hunt around the forum and found some good info on changing the creation date to that of the file name but can't find anything on the same process for using a folder name instead. I've used the rename tool to get the folders into the correct date format for using the touch -t command and then I was trying to find a way to use a similar process to the one in this post: read creation date from file name and change - batch to apply the date change in bulk to each file.
The files are in a folder with a subfolder for each date they were taken on. An example subfolder name is 2005_09_28 with files named IMG_0441.jpg, IMG_0445.jpg and MVI_0448.avi in them. I'd like to change the creation date of each file to match the subfolder the are in.
I've looked at doing it by using software such as 'a better finder' to rename the files and then use the method in the post mentioned above but would like to so it without renaming the files if possible.