Help with search please

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
romulous
Senior Member
Senior Member
Posts: 226
Joined: 2003-11-19, 04:10 UTC

Help with search please

Post by *romulous »

Hi,

I've been trying to do a search for all .jpg files on my PC below 30kb in size, excluding a certain directory, & I wanted to find out if this was possible in TC. For example, I have a number of directories:
dir a
dir b
dir c
dir d
All these are in one directory. Under each directory are some other directories - picture & preview. So, I open TC to this directory, open the search dialog, & put .jpg in the "search for" field. I then go into the advanced tab & make sure it is set to <30 kbytes. However, I want to exclude all the preview directories from the search. Is this possible?

Thanks.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2romulous
However, I want to exclude all the preview directories from the search
Hello,

Use this instead of just *.jpg in the "seach for" field:

Code: Select all

*.jpg | preview\
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Try it (from TC Help):
Include/Exclude certain directories in the search.
Examples:
*.ini | windows\ finds all ini files except those in directories called "Windows" and their subdirs.
*.htm? | _vti*\ finds all html files, except in subdirs starting with _vti (used by Frontpage)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Code: Select all

search for: *.jpg |preview\

the '|' means exclude and the '\' in the end means a folder. But you cannot use wildcards for the folder you want exclude, you must insert the full name.

You can add more than one dir to exclude e.g.:

Code: Select all

search for: *.jpg |preview\ thumbnails\
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
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Sheepdog wrote:But you cannot use wildcards for the folder you want exclude, you must insert the full name.
Are you sure?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

djk wrote:Are you sure?
I was sure to remember, that I read a note from @ghisler that said so. But I've tried it out and you are right.

One can use wildcards as well.

Thanks for the hint.

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
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Sheepdog wrote:Thanks for the hint.
I also haven't known it before. You've provoked me to check it. :-)
So thanks for the provocation - now we all know more. :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply