I have successfully created a ShellNew command so that I can create a new blank file with no file extension. The reg file looks like this:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.]
[HKEY_CLASSES_ROOT\.]
@="emptyFile"
[HKEY_CLASSES_ROOT\.\ShellNew]
"NullFile"=""
@="Empty File"
"ItemName"=""
[HKEY_CLASSES_ROOT\.\ShellNew\Config]
"NoExtension"=""
[-HKEY_CLASSES_ROOT\emptyFile]
[HKEY_CLASSES_ROOT\emptyFile]
@="Empty File"
[HKEY_CLASSES_ROOT\emptyFile\DefaultIcon]
@="%SystemRoot%\\system32\\imageres.dll,2"
This works fantastic and all. It creates the file just how I want it to, but the Icon displayed in the ShellNew window is the icon for the System Partition like so:
How can I change this icon to match the DefaultIcon I am providing for the file type itself? I have tried making an "Icon" String Value like what I had to do for the Unity and Sublime Text menu items, and that did not work no matter where I put it.
Best Answer
Try this, works like magic.
Only change. I added a IconPath at the .ext level. File type associations are amazing stuff!