ShellNew Icon for "." File Type
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Romantic Lands Beckon
--
Chapters
00:00 Shellnew Icon For &Quot;.&Quot; File Type
00:40 Answer 1 Score 0
01:03 Answer 2 Score 0
01:39 Accepted Answer Score 8
02:01 Thank you
--
Full question
https://superuser.com/questions/920267/s...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #windowsregistry #icons
#avk47
ACCEPTED ANSWER
Score 8
Try this, which works like magic, with the only change being I added an IconPath at the .ext
level (file type associations are amazing stuff!):
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.]
@="emptyFile"
[HKEY_CLASSES_ROOT\.\ShellNew]
"NullFile"=""
@="Empty File"
"ItemName"=""
"IconPath"="C:\\windows\\system32\\imageres.dll,2"
[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"
ANSWER 2
Score 0
Arent you supposed to use "imageres.dll,3" because its 3rd icon in imageres.dll?
You can try Default Programs Editor application, open program, click icons, find file type, click next, choose icon from imageres, and save as .REG file, then check whats inside that .reg.
ANSWER 3
Score 0
For whatever reason, this uses the same default icon as your C
drive.
You can see this for yourself by creating the following key, if it doesn't already exist:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultIcon
And setting the (Default) to:
%SystemRoot%\\system32\\imageres.dll,2
I'm afraid I can't answer exactly why this behaviour occurs. There's actually another thread here that manages to change the icon with a different registry key though.