Explore-path function being ignored

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Explore-path function being ignored

Post by roscoe »

I love Everything's lightening-fast search, but one small drawback is that I can't get the "explore path" or "open path" context-menu items to do anything. When I select a file and invoke either of them (right-click or ctrl-enter), the cursor flashes the busy-cursor for a millisec, and that's all that happens; no explorer window. (Double-clicking a folder selection does open it in an explorer window. Rightclick "copy path to clipboard" works correctly too.)

I'm running on Vista in a non-admin account (giving admin permission on Everything startup). Results for an admin account the same. Running Everything 1.2.1.371.
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

Check your Errorlog.txt file in your "Everything" installation folder for any system errors that might have occurred.
Look for something like:

Code: Select all

ShellExecuteExW(): GetLastError(): 5: failed to execute c:\somefile.txt
The command for exploring the path of an item can be changed with the following value in the Everything.ini file:

Code: Select all

explore_folder_path_command
The Default setting is:

Code: Select all

$exec("%SystemRoot%\explorer.exe" /n,/e,/select,"%1")
The command for opening the path of an item can be changed with the following value in the Everything.ini file:

Code: Select all

open_folder_path_command
The Default setting is:

Code: Select all

$exec("%SystemRoot%\explorer.exe" /select,"%1")
See http://support.voidtools.com/Everything/Ini for more information.

There might be an issue with explorer.exe, or the SystemRoot variable.
Are there any errors reported if you try to run the command manually from the start -> run:

Code: Select all

"%SystemRoot%\explorer.exe" /n,/e,"C:\somefile.txt"
?
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

There is one error in the errorlog.txt, dated the day I installed Everything:
10/12/2009 2:16:51 PM: Everything 1.2.1.371: d:\dev\everything\src\mu.h(1094): mu::ShellExecuteExUTF8_idlist(): ShellExecuteExW(): GetLastError(): 1155: failed to execute

The Everything.ini file differed slightly from the default you quoted. Both had "/select" option; in one case, the /n,/e options were also deleted. The lines were:
explore_folder_path_command=$exec("%SystemRoot%\explorer.exe" /n,/e,/select,"%1")
open_folder_path_command=$exec("%SystemRoot%\explorer.exe" /select,"%1")

Changing to the values you quoted had no effect. (The changed Everything.ini file was placed by Vista into the
AppData\Local\VirtualStore\Program Files\Everything directory.)

Trying [[["%SystemRoot%\explorer.exe" /n,/e,"C:\somefile.txt"]]] from the run command under the nonadmin user opened an explorer window of the "User\Documents" folder. If an existing file is named instead of somefile, then that file is opened, not its folder or the Documents folder.
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

I tried uninstalling and reinstalling Everything. It behaves the same under my nonadmin id (which I normally use). Under the admin id, which was used for the install, the right-click options now work. Whether I was mistaken when I earlier said it also did not work there, or it has changed, I'm not sure. Anyway since I rarely use the admin, the lack of the feature under the nonadmin remains a problem. It seems that there must be either a security issue or an environment settings issue causing the difference in behavior.
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

10/12/2009 2:16:51 PM: Everything 1.2.1.371: d:\dev\everything\src\mu.h(1094): mu::ShellExecuteExUTF8_idlist(): ShellExecuteExW(): GetLastError(): 1155: failed to execute
ERROR_NO_ASSOCIATION 1155 No application is associated with the specified file for this operation.
Looks like you tried to run something that had no file association.
The Everything.ini file differed slightly from the default you quoted. Both had "/select" option; in one case, the /n,/e options were also deleted. The lines were:
explore_folder_path_command=$exec("%SystemRoot%\explorer.exe" /n,/e,/select,"%1")
open_folder_path_command=$exec("%SystemRoot%\explorer.exe" /select,"%1")
Sorry, you are correct.
You can remove these lines in the Everything.ini file to restore the default values.

Trying [[["%SystemRoot%\explorer.exe" /n,/e,"C:\somefile.txt"]]] from the run command under the nonadmin user opened an explorer window of the "User\Documents" folder. If an existing file is named instead of somefile, then that file is opened, not its folder or the Documents folder.
I am not sure why this works and "Everything" does not..
I tried uninstalling and reinstalling Everything. It behaves the same under my nonadmin id (which I normally use). Under the admin id, which was used for the install, the right-click options now work. Whether I was mistaken when I earlier said it also did not work there, or it has changed, I'm not sure. Anyway since I rarely use the admin, the lack of the feature under the nonadmin remains a problem. It seems that there must be either a security issue or an environment settings issue causing the difference in behavior.
Try running "Everything" in debug mode.
To run "Everything" in debug:
  • Run Everything.exe with the -debug command line option.
What is displayed in the debug console when trying to Explore/Open the path of a file?
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

Doing an explore-path with debug shows:

Code: Select all

...
bind to parent
get menu
got menu 50350136
got menu 1
menu type 3
wid 0: 116
VERB open
wid 0: 118
VERB edit
wid 1: 115
wid 4: 101
VERB edit
wid 5: 95
VERB openas
wid 6: 92
wid 7: 29998
wid 8: 91
wid 9: 29997
wid 10: 25
VERB cut
wid 11: 26
VERB copy
wid 13: 17
VERB link
wid 14: 18
VERB delete
wid 15: 19
VERB rename
wid 16: 29999
wid 17: 20
VERB properties
track menu 04530615
idCommand 30002
ui_t::CETFolder::Release 1
CETFolder::~CETFolder
When I do the same under the admin id, it works but the debug output is identical except for a few numerical values, such as the last track menu number (which in the admin case was 00160099). Seems like Vista is quietly disobeying commands. (Vista really does suck; I wish I could have gotten my machine with XP. XP was a cleanup of Win2000; maybe Win7 is a cleanup of Vista, but I think its release is too early for MS to have actually overcome Vista's deficiencies.)
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

Thanks for the info.
What is displayed in the debug console when you try to right click open path or explorer path?
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

Um, that was what the debug window displayed, except that I omitted the early stuff. Here's the whole debug output from another run I just made, where I did right-click "Explore Path" twice in a row.

Code: Select all

ui_t::create()
ui_t::on_create()
ui_t::on_create(): done
db::load
db::destroy
load db...
ui_t::create(): done
folder count 35420
file count 343130
folder size 602140
file size 2745040
folder decode size 1609724 (25 chunks)
folder data size 460460
folder namespace size 1149264
file decode size 9272409 (142 chunks)
file data size 1372520
file namespace size 7899889
loaded db: 0.657467 seconds
usnjd.UsnJournalID 0x01c87569441d93cc
usnjd.FirstUsn 0x00000000947c0000
usnjd.NextUsn 0x0000000096b71528
start monitoring from Usn 0x0000000096b70f28
usnjd.MaxUsn 0x00000fffffff0000
usnjd.UsnJournalID 0x01c92a8d8373275b
usnjd.FirstUsn 0x0000000000240000
usnjd.NextUsn 0x000000000036fd50
start monitoring from Usn 0x000000000036fd50
usnjd.MaxUsn 0x00000fffffff0000
start all monitors
Start monitor on C...
register...
00201c08
Start monitor on D...
register...
00201c28
found 35420 folders, size 262144, db search time taken: 0.000466 seconds
found 343130 files, size 1441792, db search time taken: 0.003922 seconds
found 4216 folders, size 131072, db search time taken: 0.036837 seconds
found 36971 files, size 262144, db search time taken: 0.187132 seconds
found 110 folders, size 131072, db search time taken: 0.016155 seconds
found 1538 files, size 131072, db search time taken: 0.178601 seconds
found 0 folders, size 65536, db search time taken: 0.016601 seconds
found 6 files, size 131072, db search time taken: 0.177450 seconds
found 0 folders, size 65536, db search time taken: 0.015835 seconds
found 4 files, size 131072, db search time taken: 0.174531 seconds
CETFolder::CETFolder
ui_t::CETFolder::AddRef 0
ParseDisplayName C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
ui_t::CETFolder::ParseDisplayName
parsedisplayname
ui_t::CETFolder::ParseDisplayName
bind to parent
get menu
got menu 49821208
got menu 1
menu type 3
wid 0: 116
VERB open
wid 0: 118
VERB edit
wid 1: 115
wid 4: 101
VERB edit
wid 5: 95
VERB openas
wid 6: 92
wid 7: 29998
wid 8: 91
wid 9: 29997
wid 10: 25
VERB cut
wid 11: 26
VERB copy
wid 13: 17
VERB link
wid 14: 18
VERB delete
wid 15: 19
VERB rename
wid 16: 29999
wid 17: 20
VERB properties
track menu 3b4c0c31
idCommand 30002
ui_t::CETFolder::Release 1
CETFolder::~CETFolder
CETFolder::CETFolder
ui_t::CETFolder::AddRef 0
ParseDisplayName C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
ui_t::CETFolder::ParseDisplayName
parsedisplayname
ui_t::CETFolder::ParseDisplayName
bind to parent
get menu
got menu 49823704
got menu 1
menu type 3
wid 0: 116
VERB open
wid 0: 118
VERB edit
wid 1: 115
wid 4: 101
VERB edit
wid 5: 95
VERB openas
wid 6: 92
wid 7: 29998
wid 8: 91
wid 9: 29997
wid 10: 25
VERB cut
wid 11: 26
VERB copy
wid 13: 17
VERB link
wid 14: 18
VERB delete
wid 15: 19
VERB rename
wid 16: 29999
wid 17: 20
VERB properties
track menu 04ea089d
idCommand 30002
ui_t::CETFolder::Release 1
CETFolder::~CETFolder
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

Ah, yes I see now.
Something odd going on here...
The debug output is missing a lot of execute info.
It looks like "Everything" does not reach the normal execution path.
Does Right click -> Open work? if it does what is the debug output?
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

Right-click/open does work (opens file, not explorer), and produces this output:

Code: Select all

ui_t::create()
ui_t::on_create()
ui_t::on_create(): done
db::load
db::destroy
load db...
ui_t::create(): done
folder count 35420
file count 343130
folder size 602140
file size 2745040
folder decode size 1609724 (25 chunks)
folder data size 460460
folder namespace size 1149264
file decode size 9272409 (142 chunks)
file data size 1372520
file namespace size 7899889
loaded db: 0.705918 seconds
usnjd.UsnJournalID 0x01c87569441d93cc
usnjd.FirstUsn 0x0000000094bc0000
usnjd.NextUsn 0x0000000096c06698
start monitoring from Usn 0x0000000096b70f28
usnjd.MaxUsn 0x00000fffffff0000
usnjd.UsnJournalID 0x01c92a8d8373275b
usnjd.FirstUsn 0x0000000000240000
usnjd.NextUsn 0x000000000036fd50
start monitoring from Usn 0x000000000036fd50
usnjd.MaxUsn 0x00000fffffff0000
start all monitors
Start monitor on C...
register...
00281c08
Start monitor on D...
register...
00281c28
found 35424 folders, size 262144, db search time taken: 0.000588 seconds
found 343204 files, size 1441792, db search time taken: 0.004714 seconds
found 4216 folders, size 131072, db search time taken: 0.038054 seconds
found 38843 files, size 262144, db search time taken: 0.202668 seconds
found 110 folders, size 131072, db search time taken: 0.016081 seconds
found 1490 files, size 131072, db search time taken: 0.180355 seconds
found 0 folders, size 65536, db search time taken: 0.017387 seconds
found 5 files, size 131072, db search time taken: 0.170173 seconds
found 0 folders, size 65536, db search time taken: 0.021224 seconds
found 3 files, size 131072, db search time taken: 0.175383 seconds
CETFolder::CETFolder
ui_t::CETFolder::AddRef 0
ParseDisplayName C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
ui_t::CETFolder::ParseDisplayName
parsedisplayname
ui_t::CETFolder::ParseDisplayName
bind to parent
get menu
got menu 52112424
got menu 1
menu type 3
wid 0: 116
VERB open
wid 0: 118
VERB edit
wid 1: 115
wid 4: 101
VERB edit
wid 5: 95
VERB openas
wid 6: 92
wid 7: 29998
wid 8: 91
wid 9: 29997
wid 10: 25
VERB cut
wid 11: 26
VERB copy
wid 13: 17
VERB link
wid 14: 18
VERB delete
wid 15: 19
VERB rename
wid 16: 29999
wid 17: 20
VERB properties
track menu 040003e3
idCommand 30004
ui_t::CETFolder::Release 1
CETFolder::~CETFolder
Are there more-detail options than the simple "-debug" flag invokes by default?
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

Are there more-detail options than the simple "-debug" flag invokes by default?
The latest alpha has extended debugging information.

Please try the latest alpha available from:
"Everything" version 1.2.1.442a

What is the debug output when opening a file and exploring a file path?
roscoe
Posts: 7
Joined: Wed Nov 04, 2009 5:35 am

Re: Explore-path function being ignored

Post by roscoe »

OK, here is the debug output using the alpha, for double-click open (worked) followed by a right-click-explore-path (nothing):

Code: Select all

db::load
db::destroy
load db...
_load_db_querier
query
query
requery
query
folder count 35645
file count 355293
folder size 605965
file size 2842344
folder decode size 1599933 (25 chunks)
folder data size 463385
folder namespace size 1136548
file decode size 9517886 (146 chunks)
file data size 1421172
file namespace size 8096714
loaded db: 0.704814 seconds
48 updates in 0.000586 seconds
0 updates in 0.000084 seconds
loaded run history in 0.000140 seconds
start all monitors
query
restore selection (proir count 0 folders, 0 files, 0 special)
clear results
006be848: 90 , matchnext: 00000000, nomatchnext: 00000000
first t 7071896
waiting for 3 monitors, isdelay 0...
found 35645 folders, size 196620, db search time taken: 0.000594 seconds
found 355298 files, size 1441880, db search time taken: 0.003859 seconds
query
restore selection (proir count 0 folders, 0 files, 0 special)
clear results
006be848: 0 j, matchnext: 00000000, nomatchnext: 00000000
first t 7071896
found 1605 folders, size 65540, db search time taken: 0.014630 seconds
found 24460 files, size 131080, db search time taken: 0.076097 seconds
query
restore selection (proir count 0 folders, 0 files, 0 special)
clear results
006be848: 0 jo, matchnext: 00000000, nomatchnext: 00000000
first t 7071896
found 63 folders, size 65540, db search time taken: 0.006085 seconds
found 928 files, size 65540, db search time taken: 0.040376 seconds
query
restore selection (proir count 0 folders, 0 files, 0 special)
clear results
006be848: 0 joa, matchnext: 00000000, nomatchnext: 00000000
first t 7071896
found 0 folders, size 0, db search time taken: 0.005917 seconds
found 5 files, size 65540, db search time taken: 0.039150 seconds
Updating C:
waiting for 2 monitors, isdelay 0...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000071 seconds
query
restore selection (proir count 0 folders, 0 files, 0 special)
clear results
006be848: 0 joan, matchnext: 00000000, nomatchnext: 00000000
first t 7071896
found 0 folders, size 0, db search time taken: 0.006761 seconds
found 3 files, size 65540, db search time taken: 0.043282 seconds
waiting for 3 monitors, isdelay 0...
get selcetion 0
file 41461891
get selcetion 0
file 41461891
selection: 0/1: C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
exec: exec 0/1
exec: path C:\Users\Roscoe\Documents\zNoB\Going
exec: name joan foster.txt
exec: first expr
exec: command $exec("%1")
exec: fullfilename C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
exec: path C:\Users\Roscoe\Documents\zNoB\Going
exec: depth 0
exec: exec
exec: depth 1
exec: shellexecute (idlist)
Enter ShellExecuteExW
Leave ShellExecuteExW
exec: free idlist 00717f90
exec: free 1 items
exec: free item 0 name
exec: free item 0 path
exec: free open_file_command 006bbb70
exec: free open_folder_command 006bbb28
exec: free command 00000000
exec: free names 006b8aa0
exec: free paths 006b8b00
exec: free filebuf 02fe3d68
exec: free commandbuf 02fc3d60
exec: free info 03160070
exec: main thread regained focus
Updating C:
waiting for 2 monitors, isdelay 0...
4 updates in 0.000275 seconds
waiting for 2 monitors, isdelay 1...
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
4 updates in 0.000263 seconds
waiting for 2 monitors, isdelay 1...
waiting for 3 monitors, isdelay 0...
CETFolder::CETFolder
ui_t::CETFolder::AddRef 0
ParseDisplayName C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
ui_t::CETFolder::ParseDisplayName
parse C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt 52
parse display name
ui_t::CETFolder::ParseDisplayName
parse display name OK
bind to parent
get menu
got menu 51522128
got menu 1
menu type 3
QueryContextMenu...
QueryContextMenu 00000077
track menu 067c1615
WM_INITMENUPOP 067c1615 00000000
wid 7: 32767 (00007ffe)
80070057
wid 9: 116 (00000073)
00000000
VERB open
wid 9: 118 (00000075)
00000000
VERB edit
wid 10: 115 (00000072)
80004005
wid 13: 101 (00000064)
00000000
VERB edit
wid 14: 95 (0000005e)
00000000
VERB openas
wid 15: 92 (0000005b)
80070057
wid 16: 32765 (00007ffc)
80070057
wid 17: 91 (0000005a)
80004001
wid 18: 32764 (00007ffb)
80070057
wid 19: 25 (00000018)
00000000
VERB cut
wid 20: 26 (00000019)
00000000
VERB copy
wid 22: 17 (00000010)
00000000
VERB link
wid 23: 18 (00000011)
00000000
VERB delete
wid 24: 19 (00000012)
00000000
VERB rename
wid 25: 32766 (00007ffd)
80070057
wid 26: 20 (00000013)
00000000
VERB properties
rem dbl sep
WM_SELECT 80808005 067c1615
WM_SELECT 80808004 067c1615
WM_SELECT 80808003 067c1615
Updating C:
waiting for 2 monitors, isdelay 0...
1 updates in 0.000245 seconds
waiting for 2 monitors, isdelay 1...
waiting for 3 monitors, isdelay 0...
Updating C:
waiting for 2 monitors, isdelay 0...
1 updates in 0.000122 seconds
waiting for 2 monitors, isdelay 1...
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000182 seconds
waiting for 3 monitors, isdelay 0...
WM_SELECT ffff0000 00000000
idCommand 32771
get selcetion 0
file 41461891
get selcetion 0
file 41461891
selection: 0/1: C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
exec: exec 0/1
exec: path C:\Users\Roscoe\Documents\zNoB\Going
exec: name joan foster.txt
exec: first expr
exec: command $exec("C:\Windows\explorer.exe" /n,/e,/select,"%1")
exec: fullfilename C:\Users\Roscoe\Documents\zNoB\Going\joan foster.txt
exec: path C:\Users\Roscoe\Documents\zNoB\Going
exec: depth 0
exec: exec
exec: depth 1
exec: shellexecute (idlist)
Enter ShellExecuteExW
Leave ShellExecuteExW
exec: free idlist 03126508
exec: free 1 items
exec: free item 0 name
exec: free item 0 path
exec: free open_file_command 00000000
exec: free open_folder_command 00000000
exec: free command 006d06e8
exec: free names 02f25e20
exec: free paths 02f25e10
exec: free filebuf 03048fb8
exec: free commandbuf 02fcdf40
exec: free info 03160658
exec: main thread regained focus
ui_t::CETFolder::Release 1
CETFolder::~CETFolder
Updating C:
waiting for 2 monitors, isdelay 0...
1 updates in 0.000060 seconds
waiting for 2 monitors, isdelay 1...
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
waiting for 2 monitors, isdelay 1...
4 updates in 0.000143 seconds
waiting for 3 monitors, isdelay 0...
Updating C:
waiting for 2 monitors, isdelay 0...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000062 seconds
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
waiting for 2 monitors, isdelay 1...
3 updates in 0.000213 seconds
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000068 seconds
waiting for 3 monitors, isdelay 0...
Updating C:
waiting for 2 monitors, isdelay 0...
waiting for 2 monitors, isdelay 1...
3 updates in 0.000207 seconds
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
waiting for 2 monitors, isdelay 1...
4 updates in 0.000270 seconds
waiting for 3 monitors, isdelay 0...
Updating C:
waiting for 2 monitors, isdelay 0...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000146 seconds
DeviceIoControl already complete!
waiting for 2 monitors, isdelay 1...
6 updates in 0.000298 seconds
waiting for 2 monitors, isdelay 1...
waiting for 3 monitors, isdelay 0...
Updating C:
waiting for 2 monitors, isdelay 0...
waiting for 2 monitors, isdelay 1...
1 updates in 0.000090 seconds
waiting for 3 monitors, isdelay 0...
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Explore-path function being ignored

Post by David »

Thanks for the debug output.

"Everything" is successfully executing Windows Explorer, however, there must be an issue with Windows Explorer, most likely limited privileges.
Post Reply