Integrating TC with Windows 7 - Registry hack not working

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vitalyb
Junior Member
Junior Member
Posts: 6
Joined: 2011-08-29, 06:11 UTC
Contact:

Integrating TC with Windows 7 - Registry hack not working

Post by *vitalyb »

Hi,

I've following the instructions for Windows 7 on the wiki and created the following reg file:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="\"C:\\Program Files\\TotalCmd\\TotalCmd.exe\" \"%1\""
However, it doesn't seem to be doing anything. If I double click a folder in Explorer, it opens that folder in Explorer.

Same thing happens if I write a path in Windows->Run.

What am I doing wrong? Was anyone able to make it work?
Vitaly
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

This is what I use and it works for me:

[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@=""C:\Program Files (X86)\totalcmd\TOTALCMD.EXE" /O /T "%1""

You need to get rid of the double backslashes
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually the double backslashes are required when using a .reg file. However, when you edit it directly via Regedit, they need to be removed.
Author of Total Commander
https://www.ghisler.com
vitalyb
Junior Member
Junior Member
Posts: 6
Joined: 2011-08-29, 06:11 UTC
Contact:

Post by *vitalyb »

Oof, that was annoying to find out. Here is the registry to associate the folders and drives to totalcmd:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell]
@="open"

[HKEY_CLASSES_ROOT\Drive\shell\open]

[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell]
@="open"

[HKEY_CLASSES_ROOT\Directory\shell\open]

[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="c:\\totalcmd\\TOTALCMD64.EXE /O \"%1\""
And here is the reg to remove:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell]
@="none"

[HKEY_CLASSES_ROOT\Directory\shell]
@="none"
I'll update the wiki too.
Vitaly
Post Reply