Search for file attributes
Moderators: Hacker, petermad, Stefan2, white
Search for file attributes
I use Search (Alt-F7) to search for files with Archive attribute set.
- "Search for: |.svn\" --> don't search in subversion directory's.
- Tab Advanced, Attributes, checkbox Archive.
Press button "Feed to listbox".
Select All files (Ctrl-A)
Menu Files, Change Attributes
- Recurse directory's is TRUE.
- Checkbox Archive empty (FALSE).
Press OK button.
Check if File attribute is really cleared:
right mouseclick, properties. Seems okay.
Now comes the strange part:
I press Alt-F7 again (search) with the same search settings.
And I get the same file list!
This is not good, because the file attributes have changed.
Probably this list is cached into memory?
I use Windows 7 and Totalcommander v8.51a (both 64 bit).
- "Search for: |.svn\" --> don't search in subversion directory's.
- Tab Advanced, Attributes, checkbox Archive.
Press button "Feed to listbox".
Select All files (Ctrl-A)
Menu Files, Change Attributes
- Recurse directory's is TRUE.
- Checkbox Archive empty (FALSE).
Press OK button.
Check if File attribute is really cleared:
right mouseclick, properties. Seems okay.
Now comes the strange part:
I press Alt-F7 again (search) with the same search settings.
And I get the same file list!
This is not good, because the file attributes have changed.
Probably this list is cached into memory?
I use Windows 7 and Totalcommander v8.51a (both 64 bit).
Re: Search for file attributes
Did you actually hit "Search" again or did you just open the Search dialog without pressing "Search"? The former would be a bug while the latter is not (the list is cached and shown again for the user's comfort).ebakker wrote:Now comes the strange part:
I press Alt-F7 again (search) with the same search settings.
And I get the same file list!
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
2MVV
You're right. Never mind.
Regards
Dalai

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
I can confirm 2ebakker's observation, if I do the second search while the file panel is showing the fed search result.
If I press BackSpace before I do the second search I get the correct result.
If I press BackSpace before I do the second search I get the correct result.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50547
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't quite understand the problem - when you press Alt+F7 again, the "search attributes" are cleared, so TC doesn't search by attributes any more on that second call.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
The problem is that after all archive attributes are removed in the fed to listbox list, and a new search is done from that list with the same settings i.e: Tab Advanced, Attributes, checkbox Archive - then the same result comes up even though no files should be found, since there is no files left with the archive bit set anymore.I press Alt-F7 again (search) with the same search settings.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
I can reproduce the problem with the following scenario (TC 8.51a 32-bit):
1) Create C:\Test folder and copy some files there - they will get Archive attributes automatically
2) Display C:\Test folder in BOTH panels and activate the right panel
3) Press Alt+F7, leave "Search for:" empty, go to "Advanced" tab and check "Attributes" -> "Archive", press "Start search" button
4) Press "Feed to listbox" button - now you have search results in the right panel
5) Select all results in the right panel and clear their Archive attributes by using "Files" -> "Change Attributes" menu
Now:
- if you repeat step 3) in the left panel, you will get empty result list - this is right, because there are no longer any files with Archive attribute in C:\Test,
- if you repeat step 3) in the right panel, you will get some results.
Regards
1) Create C:\Test folder and copy some files there - they will get Archive attributes automatically
2) Display C:\Test folder in BOTH panels and activate the right panel
3) Press Alt+F7, leave "Search for:" empty, go to "Advanced" tab and check "Attributes" -> "Archive", press "Start search" button
4) Press "Feed to listbox" button - now you have search results in the right panel
5) Select all results in the right panel and clear their Archive attributes by using "Files" -> "Change Attributes" menu
Now:
- if you repeat step 3) in the left panel, you will get empty result list - this is right, because there are no longer any files with Archive attribute in C:\Test,
- if you repeat step 3) in the right panel, you will get some results.
Regards
- ghisler(Author)
- Site Admin
- Posts: 50547
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2petermad
When you press Alt+F7 again, search for attributes is NOT checked.
When you press Alt+F7 again, search for attributes is NOT checked.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
Just do as 2MarcinW has described.
Of course that means: if you press Alt+F7 and activate the search for attributes again - try it and you will se that TC finds the same files again, even though their archive attributes has been cleared...I press Alt-F7 again (search) with the same search settings.
Just do as 2MarcinW has described.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar