Opening Directory Links From Email in TC

English support forum

Moderators: Hacker, petermad, Stefan2, white

huckdogg
Junior Member
Junior Member
Posts: 2
Joined: 2011-10-20, 13:54 UTC

Opening Directory Links From Email in TC

Post by *huckdogg »

Hi,

Please excuse me if this has been asked before, but as much as I have searched, I can't seem to find the correct search terms to get the answers I need.

In Windows XP, I have set Total Commander to be the default file manager for most operations. The one thing that I can't do is make directory links from email in Outlook, MS Word, Excel, and Access open in TC. These MS applications automatically turn folder locations into hyperlinks that are clickable and take you straight to the directory. These links still open in Explorer instead of TC, though.

Is there a registry entry or setting that I can change to make hyperlinks to local directories and network directories open in Total Commander instead of Explorer?

Thanks in advance for the help!
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Same issue. Registry Fix

Post by *braedel »

I have made some changes to the registry and can get TC to launch from a directory link, but it just opens to a random location, not the path of the link. It works in Excel with hyperlinks.


[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[HKEY_CLASSES_ROOT\Folder\shell\explore\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[-HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec]

[-HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec]

It appears Outlook calls the 'shell\open' and Excel calls the 'shell\explore'.

This is the last function I need to make TC a complete replacement for Explorer.

Here is the complete registry changes to replace Explorer. Even the Win+E key launches TC now.


Windows Registry Editor Version 5.00

;This will associate Folders, Directories, and Links with total commander

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[HKEY_CLASSES_ROOT\Folder\shell\explore\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[-HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec]

[-HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec]

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

[HKEY_CLASSES_ROOT\Directory\shell\open]

[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

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

[HKEY_CLASSES_ROOT\Drive\shell\open]

[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[HKEY_CLASSES_ROOT\Drives]

[HKEY_CLASSES_ROOT\Drives\shell]

[HKEY_CLASSES_ROOT\Drives\shell\open]

[HKEY_CLASSES_ROOT\Drives\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"%1\""

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell]
@="open"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open]

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open\command]
@="\"C:\\TOTALCMD\\totalcmd.exe\" \"C:\\Documents and Settings\\mds00\\Desktop\""

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell]
@="open"

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\open]

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\open\command]
@="\"C:\\TOTALCMD\\totalcmd.exe\" \"%1\""

[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell]
@="open"

[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open]

[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open\command]
@="\"C:\\TOTALCMD\\totalcmd.exe\" \"::{208D2C60-3AEA-1069-A2D7-08002B30309D}\""
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try to remove all the ddeexec subkeys.
Author of Total Commander
https://www.ghisler.com
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Removed ddeexec

Post by *braedel »

Thanks for the response. I did remove all of the ddeexec keys (see below). Still doesn't work. I am guessing that outlook isn't passing the links to TC in the proper format. Is there a way to view what was passed?

The log file only shows when it is shut down or started. as I mentioned, it works great with Excel, but most of the folder links are sent via Outlook.

We have a huge user group here at Bosh that would be very happy to have a fix for this issue.

Thanks again,
Brad

[-HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec]

[-HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It will not work with virtual folders, but normal directories should work just fine...
Author of Total Commander
https://www.ghisler.com
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

No Virtual Folders.

Post by *braedel »

The links that I'm using are not virtual. They are typically locations on our network. Also, they are working via Excel. Outlook seems to be the last hurdle.

Examples:
\\fh1data01.us.bosch.com\data\Dept\CC_ESC_NA\Restricted\
file://fh1data01.us.bosch.com\data\Dept\CC_ESC_NA\Restricted\
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

\\fh1data01.us.bosch.com\data\Dept\CC_ESC_NA\Restricted\
This will work.
file://fh1data01.us.bosch.com\data\Dept\CC_ESC_NA\Restricted\
This will not.
Author of Total Commander
https://www.ghisler.com
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Still no-go

Post by *braedel »

Neither of the examples work with TC. TC launches to the root of C:.

Clicking on either of the examples from Excel launches TC in the right path. The issue is only in Outlook.

Thanks,
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The question is what exactly is passed to TC. Can you try this with a batch file containing
echo %1 %2 %3 %4 %5 %6 %7 %8 %9
pause

Maybe TC gets an URL passed to it which it cannot handle?
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Just FYI: you can use %* to pass all parameters at once.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Same

Post by *braedel »

I'm not sure how to implement this echo function. Can I do it in the command line with a registry edit?

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD.EXE\" \"echo %1 %2 %3 %4 %5 %6 %7 %8 %9\""

Thanks again, I really appreciate all the help.
Brad
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Re: Same

Post by *speller2 »

braedel wrote:I'm not sure how to implement this echo function. Can I do it in the command line with a registry edit?

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@=""C:\\totalcmd\\TOTALCMD.EXE" "echo %1 %2 %3 %4 %5 %6 %7 %8 %9""

Thanks again, I really appreciate all the help.
Brad
You should create a batch file with provided echo comand and replace path to the TC in the registry with path to created batch file. Next, when you will try to open a link with folder you will see the console window. Copy text from console and paste it here.
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Outlook Adding file:/// to links

Post by *braedel »

First off... I'm very impressed! Nice Work!

Here is what we are after: Regardless if the link type, Outlook seems to be adding the 'file:///' to the parameter.

Link:
\\fh1data01.us.bosch.com\DATA\Dept

Returns to bat file:

C:\Program Files\Common Files\System\MSMAPI\1033>echo \"file:///\\fh1data01.us.bosch.com\DATA\Dept\""\"file:///\\fh1data01.us.bosch.com\DATA\Dept\""

Link:
file://fh1data01.us.bosch.com\DATA\Dept

Returns to bat file:

C:\Program Files\Common Files\System\MSMAPI\1033>echo \"file:///\\fh1data01.us.bosch.com\DATA\Dept\""\"file:///\\fh1data01.us.bosch.com\DATA\Dept\""

The question is, how to prevent Outlook from adding the 'file:///' to the link?

Thanks again!
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Another thought....

Post by *braedel »

I did another test and found that Windows Explorer will resolve the path in the format sent from Outlook.

file:///\\fh1data01.us.bosch.com\DATA\Dept\

Is there a way to make TC resolve the above path like Explorer?
braedel
Junior Member
Junior Member
Posts: 8
Joined: 2011-12-15, 14:57 UTC

Outlook Issue - Resolved

Post by *braedel »

Well, I ended up writing a little program (16k) that strips the 'file///' and replaces the '%20' with a space. It then shells TC with the correct path format.
I'm sure it can be done in a batch file, but it only took a few minutes in VB.
If the command line argument doesn't contain those strings, it just passes what was sent off to TC.

Just drop the exe in the root of C: and run the reg file. I can provide compiled exe or source if someone else needs it.

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@="\"C:\\TCPathCleaner.exe\" \"%1\""

Code: Select all

Public Sub Main()
    InputArgument = Command                                          
If InStr(1, InputArgument, "file:///", vbTextCompare) > 0 Then              
    OutputArgument = Replace(InputArgument, "file:///", "")
End If
    OutputArgument = Replace(OutputArgument, "%20", " ")      
    Shell "C:\totalcmd\TOTALCMD.EXE " & OutputArgument, vbNormalFocus       'Shell Total Commander with modified path
End                                                                         
End Sub
Post Reply