Set TC as default file manager?

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Re: Set TC as default file manager?

Post by *Horst.Epp »

BlueSorrow wrote: 2020-06-21, 20:30 UTC I kept looking for solutions and found one that works for me:

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:\\Program Files\\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:\\Program Files\\totalcmd\\TOTALCMD64.EXE\" /O \"%1\""

But for some reason when I click on a search in the seeker "Everything" always open on the left tab of the TC, no in te current tab and if the TC is closed, whe it open my custom bottom bar disappeared and is restored to original. Any idea why this happens
Change your line to this one:
@="\"C:\\Program Files\\totalcmd\\TOTALCMD64.EXE\" /O /A /S /L=\"%1\""
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
BlueSorrow
Junior Member
Junior Member
Posts: 7
Joined: 2020-06-21, 00:45 UTC

Re: Set TC as default file manager?

Post by *BlueSorrow »

Thats works, but now when TC is minimized, the click function in desktop stop work, i have to closed TC for make it work again. This happens when I right click open the file location from desktop.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Set TC as default file manager?

Post by *Horst.Epp »

BlueSorrow wrote: 2020-06-21, 22:05 UTC Thats works, but now when TC is minimized, the click function in desktop stop work, i have to closed TC for make it work again. This happens when I right click open the file location from desktop.
I don't know what you mean with "click function" ?
Also this settings have nothing to do with any TC behaviour.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
BlueSorrow
Junior Member
Junior Member
Posts: 7
Joined: 2020-06-21, 00:45 UTC

Re: Set TC as default file manager?

Post by *BlueSorrow »

I mean if I do the following:
->Right click on a file on the desktop
->Open file location
He opens the location of that file right in the active tab, but after that I can't do anything else on my PC desktop, I have to maximize and minimize the TC 2 or 3 times or close it . After that everything works normally again.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Set TC as default file manager?

Post by *Horst.Epp »

BlueSorrow wrote: 2020-06-22, 06:55 UTC I mean if I do the following:
->Right click on a file on the desktop
->Open file location
He opens the location of that file right in the active tab, but after that I can't do anything else on my PC desktop, I have to maximize and minimize the TC 2 or 3 times or close it . After that everything works normally again.
Thats not a TC problem.
There is no context menu "Open file location" entry in a default Windows 10 config.
So I guess you have some third party tool installed which makes the problems.
I use the tool TCShell to add an entry "Open in Total Commander" to the context menu of any file or dir.
https://totalcmd.net/plugring/tcshell.html
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
BlueSorrow
Junior Member
Junior Member
Posts: 7
Joined: 2020-06-21, 00:45 UTC

Re: Set TC as default file manager?

Post by *BlueSorrow »

This option only appears when you right click on a shortcut ( .ink file ), there is no way to open it with Explorer?

I kept searching and found this command line:

[HKEY_CLASSES_ROOT\Directory\shell\Open in TC\command]
@="C:\\Program Files\\TotalCommander2018\\TC2018.exe /O /R=\\\"%1\\\" /P=R"

This is a fragment of a registry key that must appear in 3 locations
-> [HKEY_CLASSES_ROOT\Drive\shell\open\command]
-> [HKEY_CLASSES_ROOT\Directory\shell\open\command]
-> [HKEY_CLASSES_ROOT\lnkfile\shell\open\command] ( this in case of a shortcut ( .lnk file) )

It should appear the same way it is written, but when I add it, and I check in Regedit,appears like this:
-> "C:\Program Files\totalcmd\TOTALCMD64.EXE" /O /R=\"%1\" /P=R

Not as it should, when I open a file the TC runs but only opens as I left it last time, does not open the file.

Any ideas for this key to appear as it should when I insert it.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Set TC as default file manager?

Post by *Horst.Epp »

BlueSorrow wrote: 2020-06-23, 06:14 UTC This option only appears when you right click on a shortcut ( .ink file ), there is no way to open it with Explorer?

I kept searching and found this command line:

[HKEY_CLASSES_ROOT\Directory\shell\Open in TC\command]
@="C:\\Program Files\\TotalCommander2018\\TC2018.exe /O /R=\\\"%1\\\" /P=R"

This is a fragment of a registry key that must appear in 3 locations
-> [HKEY_CLASSES_ROOT\Drive\shell\open\command]
-> [HKEY_CLASSES_ROOT\Directory\shell\open\command]
-> [HKEY_CLASSES_ROOT\lnkfile\shell\open\command] ( this in case of a shortcut ( .lnk file) )

It should appear the same way it is written, but when I add it, and I check in Regedit,appears like this:
-> "C:\Program Files\totalcmd\TOTALCMD64.EXE" /O /R=\"%1\" /P=R

Not as it should, when I open a file the TC runs but only opens as I left it last time, does not open the file.

Any ideas for this key to appear as it should when I insert it.
Again, this is non standard for a default OS and TC installation.
Remove this entries and create and entry with TCShell I mentioned above.
This will work perfect also for lnk files and opens the target of the lnk in this case.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
sokrates4612
New Member
New Member
Posts: 1
Joined: 2020-10-06, 16:34 UTC

Re: Set TC as default file manager?

Post by *sokrates4612 »

Hello men,
I applied all these registry settings and everything work fine...great and thanks for that.
Except:
In Chrome, or Edge, or Firefox - I open file location of downloaded file (in Downloads Ctrl+J section) - it opens in Total commander very happily and correctly.

But when I close TC and repeat the same thing second time - open the same downloaded file location - it takes TC cca 15 seconds to open again.
But after some while, it reacts quickly again. The 15 second delay is only when I repeat the click in few seconds.
I experimented with " Allow only 1 copy of TC ata atime", but no success...

It is very strange - but it is happening in browsers only ... it looks like some browsers issue...
skafiend
New Member
New Member
Posts: 1
Joined: 2021-11-25, 13:12 UTC

Re: Set TC as default file manager?

Post by *skafiend »

Should be helpfull for anyone else. Change paths to TCMDx64.exe before use

Code: Select all

Windows Registry Editor Version 5.00

;; Win + E
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\shell\opennewwindow\command]
@="C:\\TotalCommander\\TCMDx64.exe"
"DelegateExecute"=""

[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; Recycle bin (shell:RecycleBinFolder shortcut)
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe ::{645FF040-5081-101B-9F08-00AA002F954E}"

;; Drives
[HKEY_CLASSES_ROOT\Drive\shell]
@="open"
 
[HKEY_CLASSES_ROOT\Drive\shell\open]
 
[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; Folders
[HKEY_CLASSES_ROOT\Directory\shell]
@="open"
 
[HKEY_CLASSES_ROOT\Directory\shell\open]
 
[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; *.Zip folders
[-HKEY_CLASSES_ROOT\CompressedFolder\Shell]

[HKEY_CLASSES_ROOT\CompressedFolder\Shell]

[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Open]
"MultiSelectModel"="Document"

[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Open\Command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Set TC as default file manager?

Post by *Dazzer »

Hi folks,

I'd like to get this working.

I'm completely new to Regedit, never opened or looked at it before. I'm not really understanding what i should do.

Here below is an image.

I've navigated to the location, but what do i do with @="open"

I don't get it! Any pointers would be welcome!

And a couple more questions:

When you use TC as your default, in-program file browser, does it only show the allowable file type you're looking for?

For example, if you're in an audio editor and you want to open an audio file, it will only show WAVs and MP3s, but not zip or xlsx files?

And is there a way to make a back up of the Regedit before you start editing? In case you make a big mess up of it?

Thanks!

Image: https://ibb.co/wBLXGkC
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Set TC as default file manager?

Post by *Fla$her »

Dazzer wrote: 2023-12-14, 07:50 UTCI'm completely new to Regedit, never opened or looked at it before. I'm not really understanding what i should do.
Why do you need regedit if you can execute a reg file where you only need to replace the paths to TOTALCMD.EXE or TOTALCMD64.EXE ?
Dazzer wrote: 2023-12-14, 07:50 UTCWhen you use TC as your default, in-program file browser, does it only show the allowable file type you're looking for?
It all depends on the settings and interface of the programs themselves.
Dazzer wrote: 2023-12-14, 07:50 UTCAnd is there a way to make a back up of the Regedit before you start editing? In case you make a big mess up of it?
Execute regedit.exe /e AllRegImage.reg from the TC command line.
But it's best not to do that, because it will break other changes after recovery. And it's a long time.
It's better to write bat based on the registry keys you have chosen. If you list them, I will give you a solution.
Overquoting is evil! 👎
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Set TC as default file manager?

Post by *Dazzer »

You said: "Why do you need regedit if you can execute a reg file where you only need to replace the paths to TOTALCMD.EXE or TOTALCMD64.EXE ?"

Ok! Could you give me some pointers on how to replace the paths?

From reading earlier posts in this thread, i was under the impression you needed to make those regedit edits, but if there's a simpler way, i'm all for it!
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Set TC as default file manager?

Post by *Fla$her »

Dazzer wrote: 2023-12-18, 08:40 UTC Ok! Could you give me some pointers on how to replace the paths?
I can see from the screenshot that you preferred the last of the reg files suggested here.
So, you need in the text editor mass replace, as suggested by the author, the path C:\\TotalCommander\\TCMDx64.exe with your ...\\TOTALCMD64.EXE given the double backslash.
After that, execute reg and confirm. You don't need to edit anything manually in the editor.
Overquoting is evil! 👎
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Set TC as default file manager?

Post by *Horst.Epp »

skafiend wrote: 2021-11-25, 13:17 UTC Should be helpfull for anyone else. Change paths to TCMDx64.exe before use

Code: Select all

Windows Registry Editor Version 5.00

;; Win + E
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\shell\opennewwindow\command]
@="C:\\TotalCommander\\TCMDx64.exe"
"DelegateExecute"=""

[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; Recycle bin (shell:RecycleBinFolder shortcut)
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe ::{645FF040-5081-101B-9F08-00AA002F954E}"

;; Drives
[HKEY_CLASSES_ROOT\Drive\shell]
@="open"
 
[HKEY_CLASSES_ROOT\Drive\shell\open]
 
[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; Folders
[HKEY_CLASSES_ROOT\Directory\shell]
@="open"
 
[HKEY_CLASSES_ROOT\Directory\shell\open]
 
[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""

;; *.Zip folders
[-HKEY_CLASSES_ROOT\CompressedFolder\Shell]

[HKEY_CLASSES_ROOT\CompressedFolder\Shell]

[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Open]
"MultiSelectModel"="Document"

[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Open\Command]
@="C:\\TotalCommander\\TCMDx64.exe \"%1\""
TCMDx64.exe is the wrong name for the x64 TC !
Correct is totalcmd64.exe
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Set TC as default file manager?

Post by *Dazzer »

Fla$her wrote: 2023-12-18, 09:49 UTC
Dazzer wrote: 2023-12-18, 08:40 UTC Ok! Could you give me some pointers on how to replace the paths?
I can see from the screenshot that you preferred the last of the reg files suggested here.
So, you need in the text editor mass replace, as suggested by the author, the path C:\\TotalCommander\\TCMDx64.exe with your ...\\TOTALCMD64.EXE given the double backslash.
After that, execute reg and confirm. You don't need to edit anything manually in the editor.
Ok!

I'm really not preferring anything, I just want to get this to work in the simplest way possible!

Could you tell me which is the file that i need to text edit?
Post Reply