SPECIAL: Change Timestamps name BASED on the given name!

Bulk Rename Utility How-To's

SPECIAL: Change Timestamps name BASED on the given name!

Postby Nezakos » Tue Dec 01, 2020 6:23 pm

Hello there,
Before my Question, I'd like to tell you that.. I just created forum account but I use the BRU the last 5-6-7 years.
For me it is one of the best softwares out there.
THANK YOU A LOT!
I know the software almost perfect because I really use it a lot.

But now, I have/WANT to make an inverse RENAME.

Somehow (I know the how), 4k-5k photos lost their "TAKEN (Original)" or windows name: "DATE TAKEN" date.
I have only the modify date.

THIS GOOD POINT is that I know the "TAKEN DATE" date, because my files have been renamed based on the date. (Old screenshots)
EX: My file name is: 20150727_224937.jpg > that means: 2020-07-27 _ 22:49:37.

Because Im nerd and geek, I'd like also to set up the "DATE TAKEN" date.

Is there any inverse algorith or something custom I could add on the software, that reads the "now" FILENAME and change the Timestamps?

Thank a lot community, Dimitrios
Nezakos
 
Posts: 1
Joined: Tue Dec 01, 2020 6:11 pm

Re: SPECIAL: Change Timestamps name BASED on the given name!

Postby therube » Tue Dec 01, 2020 7:57 pm

Don't think it can do that.
BRU is not going to modify a files' data, only its name.

So while it can set a name based on Taken, it cannot set Taken based on name.
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: SPECIAL: Change Timestamps name BASED on the given name!

Postby Luuk » Tue Dec 01, 2020 10:22 pm

Greetings Nezakos, if all the filenames is like you explain, the exiftool.exe does this like ...
Code: Select all
exiftool -ext jpg -overwrite_original -Exif:DateTimeOriginal"<$filename"  "YourFolderName"
Luuk
 
Posts: 705
Joined: Fri Feb 21, 2020 10:58 pm

Re: SPECIAL: Change Timestamps name BASED on the given name!

Postby Luuk » Tue Dec 01, 2020 11:49 pm

Unless its only a mistake, Im just noticed maybe you like to add 5+ years to the filename?? Its not to worry, because the exiftool.exe does this also ...
Code: Select all
exiftool -ext jpg -overwrite_original -Exif:DateTimeOriginal"<${filename;s/(....)(.*)/$1$2/;$_=($1+5).$2}"  "YourFolderName"
Luuk
 
Posts: 705
Joined: Fri Feb 21, 2020 10:58 pm

Re: SPECIAL: Change Timestamps name BASED on the given name!

Postby moimonbo » Sat Jan 30, 2021 2:39 am

therube wrote:Don't think it can do that.
BRU is not going to modify a files' data, only its name.

So while it can set a name based on Taken, it cannot set Taken based on name.


Forgive me for intervening.
BRU is able to modify the time stamps of the files, and this is enough for me.

In my case, like Nezakos, I have a lot of photos sorted and renamed and what I want is to modify the creation date of the files.
All my files have this format
YYYYY-MM-DD_HH-MM-SS.ext
I've been looking in the BRU Expert's Corner, but I haven't found anything to do this.
I've also searched the Javascript forum and haven't found anything either.
Can you help me to get this?
moimonbo
 
Posts: 1
Joined: Thu Jan 28, 2021 10:26 pm

Re: SPECIAL: Change Timestamps name BASED on the given name!

Postby Luuk » Sat Jan 30, 2021 4:49 am

So far, Im not finding anything in the BRU Expert's Corner or in the forum, to explain how this is conducted? It seems like javascript should certainly work, but for me Im just using the exiftool.exe like...
Code: Select all
exiftool -r -overwrite_original -FileCreateDate"<Filename" "YourFolderPath" 2>nul
You can add -ext jpg to only conduct jpegs, or other extensions, and -r recurses all the folders!

It overwrites FileCreateDate, but only if proper-date in the filename. Proper dates can be anything like "YYYYY-MM-DD_HH-MM-SS.ext" or "text_YYYYYMMDD-HHMMSS_more.ext, but this easy to change if only wishing to conduct "YYYYY-MM-DD_HH-MM-SS.ext". If there is any way to conduct this inside the BRU.exe, Im very much like to understand it.
Luuk
 
Posts: 705
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To