Page 1 of 1

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

PostPosted: Tue Jan 30, 2024 9:30 am
by cityturbo
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.

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

PostPosted: Tue Jan 30, 2024 11:36 am
by Admin
Hi, did you try using At Pos in Add(7) ?

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

PostPosted: Thu Feb 01, 2024 6:00 pm
by cityturbo
I did but it did not work.

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

PostPosted: Thu Feb 01, 2024 6:10 pm
by cityturbo
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

AutoDate(8) custom string

PostPosted: Thu Feb 01, 2024 9:40 pm
by Luuk
Inside of AutoDate(8), should change the Fmt to "Custom", so then with a "Custom" string like...
%Y%m%d_%H%M%S