Set TC as default file manager?

English support forum

Moderators: white, Hacker, petermad, Stefan2

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 »

OK, so for example i need to run this?:

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

?

So from the [ to the next [ ?

No, the auxiliary files aren't deleted, in the example i gave those files store data on how a WAV file will be displayed on screen (two files for coarse and fine grained [zoomed] views)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Set TC as default file manager?

Post by *Horst.Epp »

Dazzer wrote: 2023-12-18, 21:28 UTC OK, so for example i need to run this?:

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

?
Sorry, that is wrong.
The reg delete line doesn't need or accept your next line.

You are mixing the content of .reg files with the syntax of the reg command line tool.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
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 »

OK!...... so in order to cancel this:

---------------------------------------------------------

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

[HKEY_CLASSES_ROOT\Drive\shell\open]

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

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

[HKEY_CLASSES_ROOT\Directory\shell\open]

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


------------------------------------------------------------------

I need to do this? (one by one in CMD?)

----------------------------------------------------------------

reg delete [HKEY_CLASSES_ROOT\Drive\shell]


reg delete [HKEY_CLASSES_ROOT\Drive\shell\open]

reg delete [HKEY_CLASSES_ROOT\Drive\shell\open\command]

reg delete [HKEY_CLASSES_ROOT\Directory\shell]


reg delete[HKEY_CLASSES_ROOT\Directory\shell\open]

reg delete [HKEY_CLASSES_ROOT\Directory\shell\open\command]
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Set TC as default file manager?

Post by *Dalai »

2Dazzer
No! Copy the code supplied by Horst.Epp here viewtopic.php?p=446863#p446863, save it to a .reg file and double-click on that file to import it into the registry. It's the same way you went to set TC as default, just with different values.

That leaves the created keys in the registry but that doesn't really matter (and they can be deleted later).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Set TC as default file manager?

Post by *Fla$her »

Dazzer wrote: 2023-12-18, 21:56 UTC I need to do this? (one by one in CMD?)
reg delete [HKEY_CLASSES_ROOT\Drive\shell]
reg delete [HKEY_CLASSES_ROOT\Drive\shell\open]
reg delete [HKEY_CLASSES_ROOT\Drive\shell\open\command]
reg delete [HKEY_CLASSES_ROOT\Directory\shell]
reg delete[HKEY_CLASSES_ROOT\Directory\shell\open]
reg delete [HKEY_CLASSES_ROOT\Directory\shell\open\command]
I've shown you an example. There are no square brackets. In no case can the ..\shell key be deleted. Only ..\shell\open. Execute two commands sequentially from the TC command line:
reg delete HKCR\Drive\shell\open /f
reg delete HKCR\Directory\shell\open /f
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Set TC as default file manager?

Post by *petermad »

You can also remove keys from the registry by putting a - i front of the key in a .reg file and double-click the reg file.

example - removemykeys.reg

Code: Select all

Windows Registry Editor Version 5.00
 [-HKEY_CLASSES_ROOT\Drive\shell]
 [-HKEY_CLASSES_ROOT\Directory\shell]
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Set TC as default file manager?

Post by *Dalai »

2petermad
You should never remove the \shell keys themselves, only keys below that!
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
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 »

Thanks guys, it's fixed, somehow i missed Horst.Epp's suggestion from the earlier replies ......
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Set TC as default file manager?

Post by *petermad »

Dalai wrote: 2023-12-19, 00:59 UTC 2petermad
You should never remove the \shell keys themselves, only keys below that!
You are right - it was just an example of how to use the feature - a better example would have been:

Code: Select all

[-HKEY_CLASSES_ROOT\Drive\shell\open\command]
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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'm still having trouble getting the defaults back to Windows defaults.

As i understand it, i need to make a txt file and put this text in it:

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

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


Then save it as a .reg, double click it so it runs, and that should fix it right? Problem is, it doesn't work for me, i get this error message:


Cannot import C:\Workspace\regi\info.reg: The specified file is not a registry script. You can only import binary registry files from within the registry editor.

Anyone have any idea what i'm doing wrong?

Does the .reg file need to be in a specific location?
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Set TC as default file manager?

Post by *Dalai »

2Dazzer
The keys are not enough. Do exactly what I wrote above viewtopic.php?p=446877#p446877 with the .reg file contents posted by Horst.Epp.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Set TC as default file manager?

Post by *Stefan2 »

Dazzer wrote: 2024-01-24, 13:03 UTC The specified file is not a registry script.

Try it with this header line in your reg-file:

--------------------------
Windows Registry Editor Version 5.00

<your commamds here>

<your commamds here>

<your commamds here>

--------------------------




 
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 »

Thanks!

The recycle bin (desktop icon) is still opening with TC, anyone know how i can change that back as well?
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Set TC as default file manager?

Post by *Dalai »

2Dazzer
Which registry keys did you change to make TC the default file manager? All of them must be changed back if you want the previous behavior again.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply