Open file's/directory's path from Explorer in TC and highlight it
Moderators: white, Hacker, petermad, Stefan2
Open file's/directory's path from Explorer in TC and highlight it
Hello!
I'd like to have Total Commander in the Explorer's context menu for both files and directories.
In both cases I'd like to have a menu item which would open the path in TC.
If the context menu was invoked on a file, then that file should be highlighted in TC, e.g. the cursor (not mouse, but the "frame" in TC) should be on that file.
Optimally I'd also be able to specify whether to show the file/dir on the left, or right side (maybe one menu item for each side).
I am aware of the https://www.ghisler.ch/wiki/index.php/Explorer_integration and I've been playing a bit with it, but I've only achieved opening a directory in TC.
Can someone help?
I'd like to have Total Commander in the Explorer's context menu for both files and directories.
In both cases I'd like to have a menu item which would open the path in TC.
If the context menu was invoked on a file, then that file should be highlighted in TC, e.g. the cursor (not mouse, but the "frame" in TC) should be on that file.
Optimally I'd also be able to specify whether to show the file/dir on the left, or right side (maybe one menu item for each side).
I am aware of the https://www.ghisler.ch/wiki/index.php/Explorer_integration and I've been playing a bit with it, but I've only achieved opening a directory in TC.
Can someone help?
Re: Open file's/directory's path from Explorer in TC and highlight it
The perfect tool for this is
https://totalcmd.net/plugring/tcshell.html
https://totalcmd.net/plugring/tcshell.html
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Re: Open file's/directory's path from Explorer in TC and highlight it
I'm using something like this:
This shows TC in the context menu of files and directories, and using the context menu item of a file opens the directory the file is in and sets the cursor onto this file.
Regards
Dalai
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\TotalCmd]
@="Total Commander (32 bit)"
[HKEY_CLASSES_ROOT\*\shell\TotalCmd\command]
@="\"C:\\Program Files (x86)\\Total Commander\\totalcmd.exe\" /N /A \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\TotalCmd]
@="Total Commander (32 bit)"
[HKEY_CLASSES_ROOT\Directory\shell\TotalCmd\command]
@="\"C:\\Program Files (x86)\\Total Commander\\totalcmd.exe\" /N \"%1\""
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
Re: Open file's/directory's path from Explorer in TC and highlight it
Thank you for the suggestions. I ended up with:which is almost exactly what I had in mind.
I've been trying to make these into sub-menus, following this https://docs.microsoft.com/en-us/windows/win32/shell/creating-static-cascading-menus terribly hopeless guide without any luck and so I've decided not to waste more time on that.
However if someone knows how to do it, please share the knowledge.
Code: Select all
[HKEY_CLASSES_ROOT\*\shell\TC open in LEFT panel]
[HKEY_CLASSES_ROOT\*\shell\TC open in LEFT panel\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O /A /T /L=\"%1\""
[HKEY_CLASSES_ROOT\*\shell\TC open in RIGHT panel]
[HKEY_CLASSES_ROOT\*\shell\TC open in RIGHT panel\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O /A /T /R=\"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\TC open in LEFT panel]
[HKEY_CLASSES_ROOT\Directory\shell\TC open in LEFT panel\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O /T /L=\"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\TC open in RIGHT panel]
[HKEY_CLASSES_ROOT\Directory\shell\TC open in RIGHT panel\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O /T /R=\"%1\""
I've been trying to make these into sub-menus, following this https://docs.microsoft.com/en-us/windows/win32/shell/creating-static-cascading-menus terribly hopeless guide without any luck and so I've decided not to waste more time on that.
However if someone knows how to do it, please share the knowledge.
Re: Open file's/directory's path from Explorer in TC and highlight it
Although I got that working (years ago and indeed: after a lot of trying), there is a simpler way.
It is converted from something I use and adapted to your situation (but not tested).
This is the context menu for the currently logged on user. If you want it for all users, replace HKCU with HKLM
Code: Select all
Windows Registry Editor Version 5.00
;==========[ SUBMENU ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu]
"subcommands"=""
"MUIVerb"="Open in &Total Commander (32 bit)"
"Icon"="\"c:\\totalcmd\\TOTALCMD64.EXE\""
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell]
;==========[ LEFT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left]
"MUIVerb"=".. in the &LEFT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left\Command]
@="\"c:\\totalcmd\\TOTALCMD64.EXE\" /O /A /T /L=\"%1\""
;==========[ RIGHT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right]
"MUIVerb"=".. in the &RIGHT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right\Command]
@="\"c:\\totalcmd\\TOTALCMD64.EXE\" /O /A /T /R=\"%1\""
Re: Open file's/directory's path from Explorer in TC and highlight it
It doesn't work.
I don't see a context menu when I right-click a dir in Win explorer.
Please fix it and test it, before posting.
Thanks
I don't see a context menu when I right-click a dir in Win explorer.
Please fix it and test it, before posting.
Thanks
Re: Open file's/directory's path from Explorer in TC and highlight it
tony01,
Roman
This is very strange. I definitely do.I don't see a context menu when I right-click a dir in Win explorer.
Roman
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.
Re: Open file's/directory's path from Explorer in TC and highlight it
Roman:
I am talking about "NotNull" registry file that he posted, I changed the TC path in my computer, and I added it to the registry, but it does not work.
I don't see a context menu when I right-click a dir in Win explorer. I don't know what is wrong. HELP PLEASE.
see below:
Windows Registry Editor Version 5.00
;==========[ SUBMENU ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu]
"subcommands"=""
"MUIVerb"="Open in &Total Commander (32 bit)"
"Icon"="\"c:\\Total Commander\\Totalcmd64.exe\""
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell]
;==========[ LEFT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left]
"MUIVerb"=".. in the &LEFT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left\Command]
@="\"c:\\Total Commander\\Totalcmd64.exe\" /O /A /T /L=\"%1\""
;==========[ RIGHT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right]
"MUIVerb"=".. in the &RIGHT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right\Command]
@="\"c:\\Total Commander\\Totalcmd64.exe\" /O /A /T /R=\"%1\""
I am talking about "NotNull" registry file that he posted, I changed the TC path in my computer, and I added it to the registry, but it does not work.
I don't see a context menu when I right-click a dir in Win explorer. I don't know what is wrong. HELP PLEASE.
see below:
Windows Registry Editor Version 5.00
;==========[ SUBMENU ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu]
"subcommands"=""
"MUIVerb"="Open in &Total Commander (32 bit)"
"Icon"="\"c:\\Total Commander\\Totalcmd64.exe\""
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell]
;==========[ LEFT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left]
"MUIVerb"=".. in the &LEFT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Left\Command]
@="\"c:\\Total Commander\\Totalcmd64.exe\" /O /A /T /L=\"%1\""
;==========[ RIGHT PANE ]==========================
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right]
"MUIVerb"=".. in the &RIGHT pane"
[HKEY_CURRENT_USER\Software\Classes\*\Shell\TCmenu\Shell\TC.Right\Command]
@="\"c:\\Total Commander\\Totalcmd64.exe\" /O /A /T /R=\"%1\""