PDA

View Full Version : Adding Custom "New" type of document



slyraskal
02-04-2002, 06:48 PM
when you're in explorer and you right click and the menu pops up. under the "new" menu, there are lists of new types of documents you may create... Does anyone know how to manually insert a new type of document in that list? I've played with my registry and found a couple of things and tried them but they haven't worked.

e_Name
02-05-2002, 12:34 AM
...i copied & pasted the following from this Forum just recently [some editing done]

---------------------------------------------------------

HOW TO ADD NEW ITEM TO RIGHT CLICK MENU:

(i) Manually

(ii) Using TWEAKUI
--------------------------------------


(i) TonyKlein (Enthusiast) Winguides.com

Re: new- on right click menu

...for adding and removing items to the new menu, let me quote Mosaic1, who explains this well:

To add to the New Menu first find a hidden Folder called Shell New. It's in C:\windows
Be sure you open Folder Options>View and choose Show All Files first.

Now go to the program you want to add to the New Menu and open it up. For instance
Works and open for instance Spreadsheet. Don't add anything to it. You are creating an empty Spreadsheet. "Save as" New Spreadsheet in C:\windows\Shell New.

Open the Registry. Go to HKEY_CLASSES_ROOT
and find the extension for this file. In this case .wks
You are now at
HKEY_CLASSES_ROOT\wks

Right Click the wks key and choose New>key
Name it ShellNew (exactly as you see it here) Click on ShellNew and look in the right pane. Right click and Create>New>String Value
name this FileName (exactly as you see it here)
Double click on FileName and in the box that appears type this:
New Spreadsheet.wks

To summarize:
Create a blank. Save it in C:\windows\ShellNew
Open the registry HKEY_CLASSES_ROOT and find the extension. Add a subkey named ShellNew In the right pane create a New string Value
named FileName
Modify that to the name of the empty file.ext


Good luck, Tony
---------------------------------------------

(ii) Mosaic1 (Advisor) Winguides.com

...I explained that at another Forum and the next person came along to point out that TWEAKUI makes it easier.

Create the blank template and then open TWEAKUI. Click on the "NEW" tab, drag and drop the template into that window.
You can remove entries by using the remove button.

To remove manually, open the registry and do a search for
ShellNew
When you find the one you want to remove, either remove the ShellNew subkey or, to keep your options open to add it back easily, you can rename the ShellNew subkey to ShellNot, for instance. Later, rename the ShellNot entries back to ShellNew to restore an entry.
To continue your search, press F3.
All entries you need to change will be in HKEY_CLASSES_ROOT

Others are duplicates and won't need to be changed.

The way the New menu is formed is this: Windows enumerates the HKEY_CLASSES_ROOT Key looking for ShellNew entries. It goes through all the entries.
Removing some may help. Something else to try as well. A two step process of booting to the Command Prompt and executing
this command:
scanreg /opt
Then once in Windows doing a defrag may help too. It will optimize and compact your registry, making the information gathering faster.




e_