how to start TC for the folder via Windows XP context menu

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

how to start TC for the folder via Windows XP context menu

Post by *leopoldus »

Is it possible to add a Windows XP context menu command for folders (and may be for some types of files as well) to start TC with this folder at current panel and, if TC is already active, to bring it front with this folder at current panel (automatically to add a new tab if allowed and needed)?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

This text :

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell]
@="Total_Commander"

[HKEY_CLASSES_ROOT\Folder\shell\Total_Commander]
@="Total Commander"

[HKEY_CLASSES_ROOT\Folder\shell\Total_Commander\command]
@="\"e:\\tcbeta\\TOTALCMD.EXE\" /O \"%1\""
copied into a reg file, then doubleklick to add the settings into registry would let open new folders in TC. But be aware that XP then behaves sometimes rather unexpected.

So you should have this file at hand to be able to remove these registry keys - if XP does not work as expected. (I did so after some trials).

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2sheepdog

Thank you for your advice, I'll try. But...
settings into registry would let open new folders in TC.
indeed I've meant another thing (sorry for my English which is not good enough to explain clearly my problem): namely I mean to open an existing folder in TC via this folder's context menu command, not to create a new folder.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2leopoldus
SheepDog's solution is exactly what you requested, you can safely apply it. Careful though, to adjust the path of TC, I dont think e:\tcbeta is suitable for you ... ;-)
I switched to Linux, bye and thanks for all the fish!
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2SanskritFritz
Thank you, SanskritFritz. The words "new folder" in sheepdog's advice have confused me.
But not so much not to be able to edit some paths in code fragment :wink:

But how about some similar code for files' context menu? Is it possible?
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

But how about some similar code for files' context menu? Is it possible?
I dont think so, because I could not find a way to cut the filename from the path in regedit. TC acts weird when called with a filename as a path. When applying the /O switch, it does nothing, with the /N switch it creates an inaccessible locked tab with the filename as the path!
Christian, can you confirm this behaviour? Here is the relevant part of the inifile:

Code: Select all

[lefttabs]
0_path=C:\Documents and Settings\frank.risztits\My Documents\
0_caption=MyDox
0_options=0|3|1|0|0|1
1_path=C:\Documents and Settings\frank.risztits\My Documents\Delphi\Overtime\
1_options=0|3|1|0|0|1
2_path=C:\Documents and Settings\frank.risztits\My Documents\PSM\check_psm_queues\
2_caption=chkpsm
2_options=0|3|1|0|0|1
activetab=3
activelocked=1
As the result, I have 4 locked tabs, the 4th being the inaccessible locked tab having the filename from the command line parameter and a tab showing the path of that file correctly. Previously I had 4 locked tabs, so the last one was replaced by the funny one.

The registry entry is:

Code: Select all

[HKEY_CLASSES_ROOT\*\shell\Total Commander]

[HKEY_CLASSES_ROOT\*\shell\Total Commander\command]
@="\"c:\\Program Files\\Total Commander\\TOTALCMD.EXE\" /N \"%1\""
I switched to Linux, bye and thanks for all the fish!
Post Reply