How to Set Custom Columns, mainly for Length Items Ordinance

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

How to Set Custom Columns, mainly for Length Items Ordinance

Post by Slideshow BoB »

Needing to sort a found items' list, I thought Custom Columns would be a perfect match for my scenario. Then I realized it was a tad cumbersome to actually implement it.
Probably a limitation on my side, I decided to share this little guide I wrote in hopes this helps other people scratching their heads when trying to display those Custom Columns.

_____________________________________________________________
_____________________________________________________________

tools, configuration, information, custom columns:
pick an 'undefined' item, click EDIT, then set the fields as following:

CAPTION: strlenCC [or anything else]
TYPE: script
SCRIPT:

Code: Select all

return format(strlen(<cc_name>), "000");
//without sc FORMAT, natural sorting will not work;

FORMAT: text
TRIGGER: **BROWSE** (default; this is important, otherwise the functionality will be stale)
ITEM TYPE: files

then,

right click a column, pick ADD COLUMN, locate the 'RIGHT CLICK HERE...' newly added column,
choose 'Select Custom Column' and pick the column you named under the CAPTION field previously.
-wait a bit for it o process the list, especially if its a longer one.

Edited the script before it throws errors because of the missing indention...
-thanks!

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by admin »

Thanks for the guide!

Curious: Why do you need the length of filenames without path?

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by Slideshow BoB »

hey admin, glad it can be of help!

for auditing purposes, some patterns of files must be excluded from regular, man-made registration of processes. As they are commonly shown under a certain name length, this is the step 1 for determining which files will or will not be further scrutinized when a backtrack is needed. Think the screen-capturing made by CoPilot but we do it for almost 20 years now - without being creepers.

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by admin »

I'm asking because it would be easy to add a tweak so that the standard Len column returns the length without path.

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by Slideshow BoB »

admin wrote: 07 Oct 2025 17:46 I'm asking because it would be easy to add a tweak so that the standard Len column returns the length without path.
the sleekiest thing possible.

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by admin »

I agree. Next beta. :)

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: How to Set Custom Columns, mainly for Length Items Ordinance

Post by Slideshow BoB »

wowlly mowlly!

:party:

Post Reply