Open file's/directory's path from Explorer in TC and highlight it

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Notme
Junior Member
Junior Member
Posts: 3
Joined: 2011-06-02, 09:05 UTC

Open file's/directory's path from Explorer in TC and highlight it

Post by *Notme » 2020-01-16, 10:07 UTC

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?
TC 9.22a 64 bit, Win 10 64 bit

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

Re: Open file's/directory's path from Explorer in TC and highlight it

Post by *Horst.Epp » 2020-01-16, 13:32 UTC

The perfect tool for this is
https://totalcmd.net/plugring/tcshell.html
Windows 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.592)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.50ß13 x64 / x86, Everything 1.4.1.962 (x64)

User avatar
Dalai
Power Member
Power Member
Posts: 6837
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Open file's/directory's path from Explorer in TC and highlight it

Post by *Dalai » 2020-01-16, 13:41 UTC

I'm using something like this:

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\""
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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups

Post Reply