Like the hosts file, this is the example we’ll concentrate on.
So in-order to setup Windows 7 to edit the hosts file as Administrator (it will become the default action for any file without and extension but this is Windows and they are few and far between).
DISCLAIMER
It worked for me, I provide no guarantees that this won’t hose your particular system and/or precious data, so as always, you undertake these steps at your own risk, I always advise backing up the associated hive(s) before making changes to your registry.
We need to apply the following adjustments to your registry.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.] [HKEY_CLASSES_ROOT\.\shell] [HKEY_CLASSES_ROOT\.\shell\runas] [HKEY_CLASSES_ROOT\.\shell\runas\command] @="C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe %1"
Pasting the above into a .reg file and double clicking will allow you to Administratively Edit your extention lacking system files in Wordpad.
Changing the bottom line, will allow you to use your preferred editor (remember to retain the escaped backslashes, %1 and double quotes, after the @=)

