Adding "-" in the middle of a filename using ADD

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Adding "-" in the middle of a filename using ADD

Postby cityturbo » Tue Jan 30, 2024 9:30 am

Hi all

I have been struggling trying to insert "-" to separate YMD and HMS using ADD. It seems ADD can only insert at the beginning (prefix) or append at the end (suffix). Am able to rename the filename based on the date & time e.g. 20240130162820.jpg and want to add a hyphen in between i.e. 20240130_162820.jpg but cannot do. Could you guide me how this can be achieved?

Thx a million.
cityturbo
 
Posts: 3
Joined: Tue Jan 30, 2024 9:17 am

Re: Adding "-" in the middle of a filename using ADD

Postby Admin » Tue Jan 30, 2024 11:36 am

Hi, did you try using At Pos in Add(7) ?
Admin
Site Admin
 
Posts: 2579
Joined: Tue Mar 08, 2005 8:39 pm

Re: Adding "-" in the middle of a filename using ADD

Postby cityturbo » Thu Feb 01, 2024 6:00 pm

I did but it did not work.
cityturbo
 
Posts: 3
Joined: Tue Jan 30, 2024 9:17 am

Re: Adding "-" in the middle of a filename using ADD

Postby cityturbo » Thu Feb 01, 2024 6:10 pm

Just find out if I rename 20240130162820.jpg using Add(7) by inserting "_" at pos, then it works, which means it is done 2-step.

May I know if it can be done in one step? My original filename is A7Cxxxxxxx.jpg, I renamed to 20240130162820.jpg (YMDHMS.jpg). If I tried rename & add "_", it does not work. If you have a suggestion, happy to try out.

Thx, David
cityturbo
 
Posts: 3
Joined: Tue Jan 30, 2024 9:17 am

AutoDate(8) custom string

Postby Luuk » Thu Feb 01, 2024 9:40 pm

Inside of AutoDate(8), should change the Fmt to "Custom", so then with a "Custom" string like...
%Y%m%d_%H%M%S
Luuk
 
Posts: 771
Joined: Fri Feb 21, 2020 10:58 pm


Return to BRU Support