void wrote: ↑Fri Aug 28, 2020 7:31 am
Thanks for the HKEY_CLASSES_ROOT Key link.
I need to look into it more.
My 2 cents:
HKEY_CLASSES_ROOT is a
virtual registry key. It is the entries from HKLM\Software\Classes superimposed with the keys from HKCU\Software\Classes.
As a developer you should read the keys from HKCR instead of the ones from HKLM and HKCU.
void wrote: ↑Thu Aug 27, 2020 3:12 am
The (Default) value will specify the base class.
In older versions of Windows, you didn't need to define the keys under a base class (or ProgID or AppID; whatever the are called officially). You could define them under .txt too.
Thanks to backwards compatibility of Windows, that still works.
@Psyche: Let's try to fix your issue.
First of all, I am assuming you are running a 64-bit version of Everything as the keys you mentioned are put in the 64-bit part of the registry. If not: let me know for a "Plan B" strategy (although I would recommend using 64-bit Everything on a 64-bit Windows)
If you are indeed running 64-bit Everything, let's try it with a clean file extension: .barext
- Save these 2 CMD script in an empty folder
- Run barext_ON.cmd
It generates the necessary regkeys adn also 3 .barext files.
- Select the 3 .barext files
- When you right-click these files, you should see a "void" entry. Select it
All 3 .barext files should now be opened in Notepad.
- Report back your results.
- When done, run barext_OFF.cmd
barext_ON.cmd
Code: Select all
@echo off
setlocal
reg add "HKCU\Software\Classes\.barext\shell\void\command" /ve /d "\"%WINDIR%\notepad.exe\" \"%%1\"" /f
echo First file> "%~dp0\First.barext"
echo Second file> "%~dp0\Second.barext"
echo Third file> "%~dp0\Third.barext"
pause
barext_OFF.cmd
Code: Select all
@echo off
reg delete "HKCU\Software\Classes\.barext" /f
pause