Find Files: search for files in specific folder bug ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Find Files: search for files in specific folder bug ?

Post by *Evds »

I have the following files:
c:\temp\a\notes\test.txt
c:\temp\notes\test.txt

In the "find files" dialog c:\temp is entered in the field "search in".

If I search for "notes\*.txt" I get [No files found] as result.

If I search for "notes\*.txt " (notice there is a blank behind *.txt) I get as result:
c:\temp\a\notes\test.txt
c:\temp\notes\test.txt

If I search for "notes\ *.txt" (notice there is a blank before *.txt) I get as result:
c:\temp\notes\test.txt

This is the example in the help file: "windows\ system32\ *.ini finds ini files only in windows\ and system32 dirs".

tcmd (x64) v9.12 (i don't use everything)
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed in TC 9.12

In TC 8.52 a search for "notes\*.txt " (without the quotes) gives [No files found] as result.

Also if a c:\temp\test.txt file exists a searc for "notes\ *.txt" gives
c:\temp\test.txt
c:\temp\notes\test.txt

it is suprising that c:\temp\test.txt is found - if this is intentional the help text:
windows\ system32\ *.ini finds ini files only in windows\ and system32 dirs
should be changed to:
windows\ system32\ *.ini finds ini files only in the current dir plus in windows\ and system32\ dirs
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Also if a c:\temp\test.txt file exists a searc for "notes\ *.txt" gives
c:\temp\test.txt
c:\temp\notes\test.txt
notes\ tells TC to search in subfolder "notes" in addition to the current directory.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

notes\ tells TC to search in subfolder "notes" in addition to the current directory.
Exactly - that is why I think the current Help text i misleading: "windows\ system32\ *.ini finds ini files only in windows\ and system32 dirs" - and why I suggest a change to the Help text.


And what about the fact that a space at the end of the search parameters, changes the search result in TC 9.12?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Post by *Evds »

And what about the fact that a space at the end of the search parameters, changes the search result in TC 9.12?
You actually get three different results depending on whether you use a space between "notes\" and "*.txt" or use a space after "*.txt".
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Evds
If I search for "notes\*.txt" I get [No files found] as result.
This one is what I would expect.
If I search for "notes\ *.txt" (notice there is a blank before *.txt) I get as result:
c:\temp\notes\test.txt
And so is this one.
If I search for "notes\*.txt " (notice there is a blank behind *.txt) I get as result:
c:\temp\a\notes\test.txt
c:\temp\notes\test.txt
This is unexpected - an it is not how it worked in TC TC 8.52 either - it actually occurs the first time in TC 9.10b1.

It only happens if 'Everything' is disabled or on non-indexed drives.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Post by *Evds »

If I search for "notes\ *.txt" (notice there is a blank before *.txt) I get as result:
c:\temp\notes\test.txt
And so is this one.
windows\ system32\ *.ini finds ini files only in windows\ and system32 dirs
Based on the example in the help file I had the impression that "notes\ *.txt" would search for all *.txt files in a subdirectory with the name notes (in addition to the *.txt files in the current directory).

So, In the second example ("notes\ *.txt") I would suppose that tcmd should return two files: c:\temp\notes\test.txt and c:\temp\a\notes\test.txt ?
Because in both cases there is a *.txt file in a notes subdirectory.
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

History.txt
29.01.17 Added: New wildcards for relative dirs now support wildcard **, which stands for any number of subdirs, e.g. subdir\**\*.txt finds text files where the relative path contains "subdir" anywhere in the path (32/64)
But it seems that this only applies to the Synchronize and Copy dialog. I cannot make it work in Find files.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply