If you leave this
out, Explorer uses the file type??™s default icon. See ???Change the Icon for
All Files of a Type,??? earlier in this chapter, for the syntax.
ItemName
By default, the name of the new file you create is the name of the file
type, preceded by the word ???New??? and followed by the appropriate filename
extension; for instance: New Text Document.txt. This value determines
the name of the new file, but like MenuText, described next, it
must point to a text resource in a .dll file.
MenuText
Unfortunately, this is not what it looks like. Yes, it determines the text
that appears in Explorer??™s New menu, but you can??™t just type the text
here. Instead, it must be a reference to a text resource in a .dll file, such
as @%systemroot%\system32\mspaint.exe,-59414.
NullFile
This instructs Explorer to create an empty (zero-byte) file. If none of
these other values are present, you need to include the NullFile value,
or the file type won??™t show up in Explorer??™s New menu.
So, how do you keep applications from recreating the ShellNew keys and
continuously cluttering up Explorer??™s New menu? Adobe Photoshop does
this every time it starts, but all it takes is a quick change to the Registry to
prevent it from happening again:
1. Open the Registry Editor.
2. Navigate to the extension key you want to permanently exclude from
the New menu. For Photoshop documents, you??™d go to HKEY_CLASSES_
ROOT\.psd.
File Type Associations | 145
The Registry
3.
Pages:
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221