I was trying to follow FAQ 5.2 "How can I set "Everything" to use an external file Manager?" so I added the lines:
open_folder_path_command=$exec("%ProgramFiles%\totalcmd\totalcmd.exe" "/O $parent(%1)")
open_folder_command=$exec("%ProgramFiles%\totalcmd\totalcmd.exe" "/O %1")
to the .ini file. When I invoked the command I got:
Windows cannot fine 'c:\Program Files (x86'. Make sure you typed the name correctly, and then try again."
The problem is that I am running Windows 7 64-bit and my file manager is in the "c:\program files (x86)\"
The Errorlog.txt shows
16:32:34: Everything 1.2.1.371: d:\dev\everything\src\mu.h(1064): mu::ShellExecuteExUTF8(): ShellExecuteExW(): GetLastError(): 2: failed to execute c:\program files (x86
10/02/16
File path parsing error with an external file manager
Re: File path parsing error with an external file manager
Ah, that's neat.
It must be treating the closing parenthesis of (x86 ) as the closing of the parameters to the $exec call.
Suppose you'll run into the same situation even if you typed the path in literally?
Can the paren be escaped or encoded?
Would guess that until it's fixed you would have to call (have installed) Total Commander elsewhere.
(Just guessing here. Wait for Void to confirm.)
But then, nested parens are shown here:
open_folder_path_command=$exec("ExternalFileManager.exe" "$parent(%1)")
It must be treating the closing parenthesis of (x86 ) as the closing of the parameters to the $exec call.
Suppose you'll run into the same situation even if you typed the path in literally?
Can the paren be escaped or encoded?
Would guess that until it's fixed you would have to call (have installed) Total Commander elsewhere.
(Just guessing here. Wait for Void to confirm.)
But then, nested parens are shown here:
open_folder_path_command=$exec("ExternalFileManager.exe" "$parent(%1)")
Re: File path parsing error with an external file manager
Please make sure you keep the double quotes around your external file manager.
Re: File path parsing error with an external file manager
I worked out a workaround for this problem:
1) I created a junction called c:\pgmfiles pointing to "C:\Program Files (x86)\"
2) I added these lines to the ini file
open_folder_path_command=$exec("c:\pgmfiles\totalcmd\totalcmd.exe" /O /T /P=L "$parent(%1)")
open_folder_command=$exec("c:\pgmfiles\totalcmd\totalcmd.exe" /O /T /P=L "%1")
The /O /T /P=L are parameters for Total Commander.
This setup worked but I'm pretty sure there's a bug somewhere in Everything
I suppose another approach would be to put "C:\Program Files (x86)\totalcmd" in the path specified in the environment variables. Then I wouldn't have to specify the path.
Zarky
1) I created a junction called c:\pgmfiles pointing to "C:\Program Files (x86)\"
2) I added these lines to the ini file
open_folder_path_command=$exec("c:\pgmfiles\totalcmd\totalcmd.exe" /O /T /P=L "$parent(%1)")
open_folder_command=$exec("c:\pgmfiles\totalcmd\totalcmd.exe" /O /T /P=L "%1")
The /O /T /P=L are parameters for Total Commander.
This setup worked but I'm pretty sure there's a bug somewhere in Everything
I suppose another approach would be to put "C:\Program Files (x86)\totalcmd" in the path specified in the environment variables. Then I wouldn't have to specify the path.
Zarky
Re: File path parsing error with an external file manager
The ) is indeed terminating the exec term prematurely.
Added to my "Things to fix" list...
Added to my "Things to fix" list...
Re: File path parsing error with an external file manager
Change the "$parent(%1)" to "%1". The parent parameter is not necessary or needed in TC. There was a discussion on that a while back in the TC forums.
Re: File path parsing error with an external file manager
Please use $$, $%, $( and $) to escape $, %, ( and ).
Re: File path parsing error with an external file manager
Hi!
How can I open directly a folder or a file in the total commander? When I used XP there wasn't any problem. Everything-1.2.1.452a open the total commander (c:\Program Files\Total CMA Pack\Total CMA Pack.exe) but now I use Windows 7 and this is always overwrite the everything.ini file, and always open explorer.
Is there any way to use for opening file and folder with total commander?
How can I open directly a folder or a file in the total commander? When I used XP there wasn't any problem. Everything-1.2.1.452a open the total commander (c:\Program Files\Total CMA Pack\Total CMA Pack.exe) but now I use Windows 7 and this is always overwrite the everything.ini file, and always open explorer.
Is there any way to use for opening file and folder with total commander?