Skip Folder During Search

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Skip Folder During Search

Post by *AnthonyCian »

I do not know what I am doing wrong or I am not understanding the concept. I want to search for just text files, but I also want to skip a 1gig folder in the search process. I have the "Search For" field as follows:

*.txt | CTI -TC-Transition\

That folder is being searched (maybe it's the subfolders) and txt files are showing up. I would like that folder and all it's subfolders skipped from this search session. Is it possible? Willing to use plug-ins if that's what it will take.

Thanks,

Anthony - Windows 7 64bit, TC 8.51a 32bit

EDIT:
Okay it seems there is a space after I in CTI. I renamed it removing that space and it works fine. However I have to ask, if the space was needed and I needed to do the above, how would one go about that?
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

how would one go about that?

I would try: *.txt | "CTI -TC-Transition\"
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

Thanks petermad, it worked.
Just curious though, is that documented in the help section somewhere to put quotes when folders have spaces? If it is, I could not find it.

AnthonyC
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2AnthonyCian

In the start of the "Find files: General" help section:
Multiple search masks can be entered, separated by spaces (see examples below). All masks after the pipe character | will be treated as exclude masks.
Note: Names with spaces do not need to be put in double quotes, e.g. Letter to Mr. Smith.doc. Total Commander now looks for both the entire name and the name parts individually. However, when the pipe character | is used for an exclude mask, names with spaces must be put in double quotes.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

Okay...
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

TC has some very inconsistent quoting mechanisms, but in this case since there can only be one PIPE, there needs to be a way for the input to differentiate between: one directory, two directories, and one (or more) directories with spaces in their name*.


(*) Which could also include in rare(r) cases, leading or trailing spaces.
Post Reply