SearchFlags Explanation

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

SearchFlags Explanation

Post by *Zodarr »

Hi to all!

First, i'd like to say, i'm using TC quite a while (somewhere from 3.x), and it's the best filemanager ever.
BUT, i registered just now to this forum. The reason? I have a question about an option, namely the SearchFlags.

Could someone explain me, what options/datas between the | marks are?
Or is there some explanation in the help, or the wiki?
(I dont found one)

Thx.

And, sorry if my english is bad...
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Welcome abord.

In general the "|" is used to exclude from search, e.g

search for: *.* |*.txt

search for all files except *.txt

for more info about this topic hit F1 in TC, click on Commands->Search->Dialog box Find files.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

Post by *Zodarr »

Maybe i wasnt clear enough.
I meant, that in WINCMD.INI, you can specify coloring by file type.

For example:

Code: Select all

ColorFilter1=>file
ColorFilter1Color=14408667
Here, the "file" word is a label.
Next is:

Code: Select all

file_SearchFor=*
file_SearchIn=
file_SearchText=
file_SearchFlags=0|0000000000|||||0|0|1|00002|0000
or:

Code: Select all

[Searches_file]
SearchFor
SearchIn
SearchText
SearchFlags
The question is, what are the meanings of the separated numbers?
I saw in a topic, that one of them is a file size limit, the others i dont know.[/code]
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Zodarr
SearchName=_SearchFlags=a|bcdefghijklm|n|o|p|q|r|s|t|u|vwxy

a=Search archives (0/1)
b=Whole words only (0/1)
c=Case sensitive (0/1)
d=ASCII charset (DOS) (0/1)
e=Find files NOT containing the text (0/1)
f=Only search in selected directories/files (0/1)
g=Attribute compressed (0=not set, 1=set, 2=don't care)
h=Hex (0/1)
i=Unicode (0/1)
j=RegEx (0/1, filenames)
k=RegEx (0/1, file content)
l=Attribute encrypted (0=not set, 1=set, 2=don't care)
m=UTF8 (0/1)
n=Date between 1st date
o=Date between 2nd date
p=Not older than value
q=Not older than unit (-1=minute,0=hour, 1=day, 2=week, 3=month, 4=year 5=year)
r=File size operator (0=equal(=), 1=greater(>), 2=smaller(<))
s=File size value
t=File size unit (0=bytes, 1=kbytes, 2=Mbytes)
u=Attributes (0=not set, 1=set, 2=don't care, sequence of 5 elements: archive, read only, hidden, system, directory)
v=Find duplicate files: (0/1)
w=same contents (0/1)
x=same size (0/1)
y=same name (0/1)
Last edited by Lefteous on 2006-03-17, 16:53 UTC, edited 3 times in total.
kajoj1
Member
Member
Posts: 122
Joined: 2005-08-08, 10:24 UTC
Contact:

Post by *kajoj1 »

@Zodarr

This is mail I recived from Ghisler when I asked him about explanation of "SomeName_SearchFlags". I hope that it helps you.
these are just flags separated by
vertical lines "|" to separate them from each other.

The fields are (normally 1=on, 0=off, 2=ignore):
A|BCDE0FGHIJK|L|M|N|O|P|Q|R|S|TUVW

A= search in packers
B= whole words
C= case sensitive
D= ascii
E= text is NOT contained
0= currently unused
F= NTFS-packed
G= hex search
H= Unicode search
I= Search regex in file name
J= Search regex in contents
K= UTF8-Search
L= if present, it's the start date/time
M= if present, it's the end date/time
N= if present, it's the delay time (max x days old)
O= if present, it's the delay unit (days, hours etc)
P= search size mode: 1=larger than, 2= smaller, else equal
Q= search size
R= search multiplier: 1-> 1024, 2->1024*1024
S= search attributes: abcde-> a=archive, b=read only,
c=hidden, d=system, e=directory
0=not set, 1=set, 2=ignore
T=duplicate search
U=duplicate: same content
V=duplicate: same name
W=duplicate: same size

Please note that if a flag is NOT present, it means that the
search function will not look for this option.
EDIT
@Lefteous

You're a bit faster than me. :wink:
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

Thanks

Post by *Zodarr »

Danke schön, Lefteous!
Thank you, kajoj1!

This was a great help.
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

Problem?

Post by *Zodarr »

Back again... another problem(?) emerged.
I needed the previos info on flags for file coloring...
I try to explain, what i wanted to do:

Assume, eg, there is a file extension (be it EXT in this case, it doesnt matter, if this exist or not...so, just an example).
But, not just one file format has this as extension, but 2 or 3 or more.
One of them is a music file, one a document, the third is a picture file.
The difference between them is the header text in the file (eg: PK for ZIP packed, MZ for EXE files, etc.).

So, what i wanted is, that TC shows the music EXT files with different color.
Therefore, at SearchName_SearchText, i write the music EXT file's header text.

The problem is, it doesnt seems to work. I tried it with ZIP packed files, searched for PK, nothing.

Is there a solution for it, or it simply doesnt work?

Oh, and a question regarding the previous infos you 2 gave me: Which one is actual (latter, maybe). Then there is a slight difference between the 2.

Thanks.
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Zodarr
Hi,

I'm not really sure why you need to know the specification of search flag values. You don't have to know the way TC stores this values internally. All options are available in the search dialog but maybe I misunderstood your concern?
If you want to define a color by filetype consider that text search is not supported here.
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

Post by *Zodarr »

Yep, i wanted color by filetype, where two different formats have the same extension, and therefore it would be good to distuingish them, which file in which format is.

But, as it seems, TC doesnt support this.
Well, thanks anyway.
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Zodarr
I forgot to mention that text search in plug-ins is supported in define colors by filetype. Please consider that such a plug-in must be very fast because file coloring is performed in foreground.
User avatar
Zodarr
Junior Member
Junior Member
Posts: 13
Joined: 2006-03-16, 22:28 UTC
Location: Budapest, Hungary

Post by *Zodarr »

That's why i wanted to do this with TC's internal options.

Disturbing: If i cant use text search in file coloring, why is the option there?
(The option in wincmd.ini. See This topic)
TC needs the presence of it, but can not work with it? (Can use the other search options, but this one)

Any chance that this will be supported in some of the next versions?
Paradimethyldiaminoarsenobensolmonomethansulfinacidic natrium, or
Überseedecksgeschwindigkeitkontrollerkonsoleneinheit?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Zodarr
That's why i wanted to do this with TC's internal options.
I don't think it matters if it's performed internally or by a plug-in. Opening a file and read the first bytes is time consuming - at least too time consuming to be performed in the foreground.
Post Reply