associate directory with TC?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tungwaiyip
Junior Member
Junior Member
Posts: 23
Joined: 2003-03-07, 23:27 UTC
Location: San Francisco, US
Contact:

associate directory with TC?

Post by *tungwaiyip »

From Windows' start menu, choose Run... There you can enter a file name and have the default application launched to open it, e.g. enter x.html would load it in your web browser. If you enter a directory name, explorer got invoked.

With a file, you can associate an extension with any other application. Is it possible to do it for a directory. I like to have TotalCommand cd to that directory if it get invoked.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Adjust totalcmd.exe path, watch the double backslashes, look in TC help 4b to learn about parameters, save as blabla.reg and doubleclick:
REGEDIT4

[HKEY_CLASSES_ROOT\Folder\shell]
@="Total_Commander"
[HKEY_CLASSES_ROOT\Folder\shell\Total_Commander]
@="Total Commander"
[HKEY_CLASSES_ROOT\Folder\shell\Total_Commander\command]
@="C:\\Total Commander\\TOTALCMD.EXE /O /L=\"%1\""
To undo all changes, import the following:
REGEDIT4

[HKEY_CLASSES_ROOT\Folder\shell]
@=-
[-HKEY_CLASSES_ROOT\Folder\shell\Total_Commander]
Icfu
This account is for sale
tungwaiyip
Junior Member
Junior Member
Posts: 23
Joined: 2003-03-07, 23:27 UTC
Location: San Francisco, US
Contact:

Works like a charm

Post by *tungwaiyip »

Really cool. Thanks for the tips.

wy
Post Reply