It used to be possible to set HKEY_CLASSES_ROOT\Unknown\Shell\Open\Command
and then any unknown files would open with the specified program instead of seeing that “Open With...” dialog box.
This applies to files with no extension, as well as files with .dat
or .xyz
or whatever.
This page explains how: Vim Tip 185
Does Windows 7 let you do this?
Answer
It's still possible to do it this way. However, you must also set the default command for the Unknown
key. By default is probably openas
, but you can change it. Just set HKEY_CLASSES_ROOT\Unknown\shell
default value to Open
.
Also, when you change HKCR
keys those writes will be directed to their actual location, which is HKEY_LOCAL_MACHINE\Software\Classes
. If there exists the same keys in the corresponding per-user location (HKEY_CURRENT_USER\Software\Classes
) then that value will be used instead- just changing the HKCR
value isn't enough, you'll need to change the HKCU
value as well.
Comments
Post a Comment