"Associate with" fails to show filetypes with no "open" command
Posted: 2020-10-02, 17:23 UTC
"Associate with..." dialog fails to show filetypes that have no "open" command defined.
To reproduce the bug, create a new file association like this:
In the example above, PHP files have two commands: Edit and Run. Run is the default. There is no Open.
Select a .php file in Total Commander and open "Associate with...". File will appear as not associated with any program. "PHP Script" will not appear in the list.
Now add this:
Now open again the Associate dialog. PHP files will appear associated with "PHP Script".
To reproduce the bug, create a new file association like this:
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.php]
@="PHP4"
[HKEY_CLASSES_ROOT\.php4]
@="PHP4"
[HKEY_CLASSES_ROOT\PHP4]
@="PHP4 Script"
[HKEY_CLASSES_ROOT\PHP4\Shell]
@="run"
[HKEY_CLASSES_ROOT\PHP4\Shell\edit]
@="&Edit"
[HKEY_CLASSES_ROOT\PHP4\Shell\edit\command]
@="notepad.exe \"%1\""
[HKEY_CLASSES_ROOT\PHP4\Shell\run]
@="&Run"
[HKEY_CLASSES_ROOT\PHP4\Shell\run\command]
@="php.exe \"%1\""
Select a .php file in Total Commander and open "Associate with...". File will appear as not associated with any program. "PHP Script" will not appear in the list.
Now add this:
Code: Select all
[HKEY_CLASSES_ROOT\PHP4\Shell\open]
@="&Open"
[HKEY_CLASSES_ROOT\PHP4\Shell\open\command]
@="notepad.exe \"%1\""