Rename File using Custom Column formula result

Discussion related to "Everything" 1.5 Alpha.
Post Reply
klark1kent
Posts: 12
Joined: Thu Aug 11, 2022 1:26 am

Rename File using Custom Column formula result

Post by klark1kent »

Does anyone know if it's possible and if so what the syntax is to use a Custom Column to rename files?

I'm using the TEXTJOIN formula to generate output on Column 1 for EXE files:

Code: Select all

column1:=TEXTJOIN(" - ",TRUE,product-name:,property-system:system.itemnamedisplaywithoutextension:,product-version:).extension: add-column:column1 extension:exe
Which works quite nicely to get this file name:
XTUSetup.exe
to look like this instead:
Intel Extreme Tuning Utility - XTUSetup - 6.1.2.13.exe
The issue is right now I'm just using context menu, copy column 1, one file at a time. This would take forever. When you use Advance Rename you can select the Column 1 property: $column-1:

But when added to New Format it doesn't produce a result. So figure it either doesn't work that way, or I'm just doing it wrong. If it doesn't work that way, it'd be really awesome to have.
void
Developer
Posts: 15354
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename File using Custom Column formula result

Post by void »

The advanced renamer uses the Everything Preprocessor.

The same functions exist.
However, the syntax is different.

Column formulas use the following syntax:
TEXTJOIN(...)
(The syntax can be a valid filename)

The preprocessor uses the following syntax:
<TEXTJOIN:...>
(The syntax is NEVER a valid filename)



Please try the following new format in the advanced renamer:

<TEXTJOIN:" - ",TRUE,$product-name:,$system.itemnamedisplaywithoutextension:,$product-version:>.$extension:
klark1kent
Posts: 12
Joined: Thu Aug 11, 2022 1:26 am

Re: Rename File using Custom Column formula result

Post by klark1kent »

void wrote: Fri Mar 22, 2024 12:27 am <TEXTJOIN:" - ",TRUE,$product-name:,$system.itemnamedisplaywithoutextension:,$product-version:>.$extension:
Unbelievable, I love this damn tool and forum. That worked, appreciate the fast response as always.

This is about to make me wayyyyyy more productive.
Post Reply