return data in custom column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

return data in custom column

Post by yusef88 »

Hi everybody

if the file contents has English letters can Custom column show ENG beside the file

Code: Select all

quicksearch("<cc_item> /contents=[a-z] /contflags=r /u");

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: return data in custom column

Post by highend »

Code: Select all

return (quicksearch("/contents=[a-z] /contflags=r /u", <cc_item>)) ? "ENG" : "";
One of my scripts helped you out? Please donate via Paypal

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

Re: return data in custom column

Post by admin »

Why quicksearch?

This will read the first 8 bytes of a file in a custom column:

Code: Select all

$a = readfile("<cc_item>", "b", 8);
You can then test them for being English.

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: return data in custom column

Post by yusef88 »

@highend you never let me down thanks :D
@admin the first 8 bytes maybe numbers or symbols thanks

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

Re: return data in custom column

Post by admin »

It was just an example. You can read any number of bytes.

Post Reply