Directory tree and Everything.

English support forum

Moderators: sheep, Hacker, Stefan2, white

User avatar
tuska
Power Member
Power Member
Posts: 1755
Joined: 2007-05-21, 12:17 UTC

Re: Directory tree and Everything.

Post by *tuska » 2019-10-22, 19:35 UTC

fenix_productions wrote:
2019-10-22, 19:09 UTC
I had same trouble:
I tick "Everything" checkbox -> DirectoryTree becomes empty.

…but I have realised that TC was running as admin but Everything did not.
Once Everything is set as admin all works.
That explains a lot...
Do you have a treeinfoC.wc somewhere on your PC?

User avatar
fenix_productions
Power Member
Power Member
Posts: 1956
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Re: Directory tree and Everything.

Post by *fenix_productions » 2019-10-22, 20:01 UTC

tuska wrote:
2019-10-22, 19:35 UTC
Do you have a treeinfoC.wc somewhere on your PC?
Inside one of TC paths:
https://www.fenixproductions.pl/files/tc/tc950b2/dirtree.png
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
tuska
Power Member
Power Member
Posts: 1755
Joined: 2007-05-21, 12:17 UTC

Re: Directory tree and Everything.

Post by *tuska » 2019-10-22, 20:27 UTC

fenix_productions wrote:
2019-10-22, 20:01 UTC
tuska wrote:
2019-10-22, 19:35 UTC
Do you have a treeinfoC.wc somewhere on your PC?
Inside one of TC paths:
https://www.fenixproductions.pl/files/tc/tc950b2/dirtree.png
Thanks! :D

I played through everything again (ALT+F10, F2), searched with and without 'Everything' *) for treeinfoC.wc (hidden file).
On my PC this file for drive C: is not created (not in %COMMANDER_PATH% and nowhere else).

*) 'Everything' finds hidden files automatically.

vdijken
Junior Member
Junior Member
Posts: 80
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Directory tree and Everything.

Post by *vdijken » 2019-10-23, 09:22 UTC

Why does Everything works for finding files and not for directories? And I use the service, not the exe. How can I make the sercive run as admin?

vdijken
Junior Member
Junior Member
Posts: 80
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Directory tree and Everything.

Post by *vdijken » 2019-10-23, 09:29 UTC

When I stop the service; Alt-F10 works. Apparently the EXE passes the right data to TC and not the service!

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3474
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Directory tree and Everything.

Post by *Horst.Epp » 2019-10-23, 10:03 UTC

vdijken wrote:
2019-10-23, 09:29 UTC
When I stop the service; Alt-F10 works. Apparently the EXE passes the right data to TC and not the service!
The service never passes any data to TC or other tools,
its just there to index all files without need of Admin or enhanced rights in the GUI.
Windows 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.476)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß8 x64 / x86, Everything 1.4.1.959 (x64)

User avatar
tuska
Power Member
Power Member
Posts: 1755
Joined: 2007-05-21, 12:17 UTC

Re: Directory tree and Everything.

Post by *tuska » 2019-10-23, 10:44 UTC

vdijken wrote:
2019-10-23, 09:29 UTC
When I stop the service...
Meanwhile I suspect that was the reason why your test wasn't successful.
The 'Everything Service' must be started.
[If you checked only "Run as administrator" the 'Everything Service' is not available.]

In 'Everything' under menu "Tools" - "Options..." the following should be set:
☐ Run as administrator
☑ Everything Service

Maybe you want to repeat the test with these settings?

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory tree and Everything.

Post by *ghisler(Author) » 2019-10-24, 09:29 UTC

You need to press F2 or rescan after ticking "Everything" checkbox.
Author of Total Commander
http://www.ghisler.com

vdijken
Junior Member
Junior Member
Posts: 80
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Directory tree and Everything.

Post by *vdijken » 2019-10-25, 07:42 UTC

I found why it did not work. My settings in Everything are correct, but somehow Everything started as service and as program. I used autoruns64 from the sysinternals and unticketed the run registry. Now it works fine. But I wonder why Alt-F7 kept working and Alt-F10 does not work.

User avatar
tuska
Power Member
Power Member
Posts: 1755
Joined: 2007-05-21, 12:17 UTC

Re: Directory tree and Everything.

Post by *tuska » 2019-10-25, 20:03 UTC

It looks like this to me now (Example):

Code: Select all

Starting point:
Everything (User)  <-> TC (User):  treeinfoI.wc non-existent.
---------------------------------------------------------------------------------------------------------------------------------
1. Everything (User)  <-> TC (User):  ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
2. Everything (User)  <-> TC (User):  ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

3. Everything (User)  <-> TC (Admin): ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
4. Everything (User)  <-> TC (Admin): ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' NOT possible, empty window, 
								   		    --> treeinfoI.wc deleted [OR not created]

5. Everything (Admin) <-> TC (User):  ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
6. Everything (Admin) <-> TC (User):  ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

7. Everything (Admin) <-> TC (Admin): ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
8. Everything (Admin) <-> TC (Admin): ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

---------------------------------------------------------
Everything (User):  With 'Everything Service' enabled.
Everything (Admin): Without 'Everything Service' enabled.
---------------------------------------------------------
This also explains why I didn't find the treeinfoC.wc (--> because I've always enabled Everything and pressed 'F2 re-scan tree').
Whenever 'Everything' is checked and 'F2 re-scan tree' is pressed, there is no file: treeinfo?.wc. *)

The key 'F2 re-scan tree' determines whether a treeinfo?.wc file is created or deleted.

*) If a file exists, e.g. treeinfoC.wc (creation without 'Everything' being checked!)
and then ALT+F10 ☑ 'Everything' ... 'F2 re-scan tree' is NOT pressed it remains and is not deleted.
Several tests have shown that with ALT+F10 ☑ 'Everything' the database is up-to-date(!) even in this case.

Point 4. is the point
- vdijken has described in his first post
- to which fenix_productions has already referred

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3474
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Directory tree and Everything.

Post by *Horst.Epp » 2019-10-26, 10:14 UTC

tuska wrote:
2019-10-25, 20:03 UTC
It looks like this to me now (Example):

Code: Select all

Starting point:
Everything (User)  <-> TC (User):  treeinfoI.wc non-existent.
---------------------------------------------------------------------------------------------------------------------------------
1. Everything (User)  <-> TC (User):  ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
2. Everything (User)  <-> TC (User):  ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

3. Everything (User)  <-> TC (Admin): ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
4. Everything (User)  <-> TC (Admin): ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' NOT possible, empty window, 
								   		    --> treeinfoI.wc deleted [OR not created]

5. Everything (Admin) <-> TC (User):  ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
6. Everything (Admin) <-> TC (User):  ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

7. Everything (Admin) <-> TC (Admin): ALT + F10 ☐  'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc created
8. Everything (Admin) <-> TC (Admin): ALT + F10  ☑ 'Everything' --> 'F2 re-scan tree' possible, --> treeinfoI.wc deleted

---------------------------------------------------------
Everything (User):  With 'Everything Service' enabled.
Everything (Admin): Without 'Everything Service' enabled.
---------------------------------------------------------
This also explains why I didn't find the treeinfoC.wc (--> because I've always enabled Everything and pressed 'F2 re-scan tree').
Whenever 'Everything' is checked and 'F2 re-scan tree' is pressed, there is no file: treeinfo?.wc. *)

The key 'F2 re-scan tree' determines whether a treeinfo?.wc file is created or deleted.

*) If a file exists, e.g. treeinfoC.wc (creation without 'Everything' being checked!)
and then ALT+F10 ☑ 'Everything' ... 'F2 re-scan tree' is NOT pressed it remains and is not deleted.
Several tests have shown that with ALT+F10 ☑ 'Everything' the database is up-to-date(!) even in this case.

Point 4. is the point
- vdijken has described in his first post
- to which fenix_productions has already referred
Problem with number 4 confirmed
Windows 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.476)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß8 x64 / x86, Everything 1.4.1.959 (x64)

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory tree and Everything.

Post by *ghisler(Author) » 2019-10-28, 14:31 UTC

TC receives reply from Everything via WM_COPYDATA. For security reasons, TC doesn't accept data from normal users when run as administrator. Therefore Everything running as normal user cannot send the results to TC. The problem is that any other program could send fake data to TC if I allowed it...
Author of Total Commander
http://www.ghisler.com

User avatar
tuska
Power Member
Power Member
Posts: 1755
Joined: 2007-05-21, 12:17 UTC

Re: Directory tree and Everything.

Post by *tuska » 2019-10-28, 15:35 UTC

Thanks for this information!

Then could a moderator please move this post to the forum "Total Commander (English)"?
Thank you!

User avatar
Hacker
Moderator
Moderator
Posts: 11396
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Directory tree and Everything.

Post by *Hacker » 2019-10-28, 22:17 UTC

Message from moderator Hacker

Moved to the English forum.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

Post Reply