Advance Rename Formula understanding

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Advance Rename Formula understanding

Post by sk2107 »

Hi,

I am trying to stick the modified date to some files in order not to loose the date while moving files (some tools change file date).

So I Used Advance Rename to do that, but there one thing I did not understand, for example:

File name: car_particles.mov
when I put # before the date it gives a different name
%1.%2__#<formatfiletime:$date-modified:,"yyyy-MM-dd_HH-mm-ss">.%2
the new name will be: car_particles.mov__2023-03-24_07-31-13>.31ov

and when I put any letter after # it is OK
%1.%2__#_<formatfiletime:$date-modified:,"yyyy-MM-dd_HH-mm-ss">.%2
the new name will be: car_particles.mov__# 2023-03-24_07-31-13.mov

Sure there is a reason for that but I can't get it.

( I put the # in order to know that this file name was changed manually).

Thank you
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advance Rename Formula understanding

Post by void »

# can be used with the Everything preprocessor syntax:
#<formatfiletime:...#>:

Use #num: to escape the hash symbol before the <function:...> syntax:
#num:<formatfiletime:$date-modified:,"yyyy-MM-dd_HH-mm-ss">.%2
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Advance Rename Formula understanding

Post by sk2107 »

I will try that.

Thank you
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advance Rename Formula understanding

Post by void »

Just making a note here, Everything 1.5.0.1341a will no longer support the #<func:param#>: syntax in the multi-file renamer as it's not necessary.

Please use the recommended syntax:
<function:...>
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Advance Rename Formula understanding

Post by sk2107 »

Thank you for the notice.
One question, will this change the suggested solution for this post?


with best wishes
Regards
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advance Rename Formula understanding

Post by void »

#num: is no longer replaced with #

Please use:

#<formatfiletime:$date-modified:,"yyyy-MM-dd_HH-mm-ss">.%2
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Advance Rename Formula understanding

Post by sk2107 »

Understood .

thank you
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advance Rename Formula understanding

Post by void »

Everything 1.5.0.1342a adds support for &character-entity-name:

For example:
&num: => #
&lt: => <
&gt: => >
&colon: => :
Post Reply