Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial Categories Network & Internet Tutorials File & Folder Settings Tutorials Taskbar & Start Menu Tutorials Performance & Maintenance Tutorials General Tips Tutorials Programs & Features Tutorials Context Menu Tutorials Shortcut Tutorials Security & System Tools Tutorials Parental Controls Tutorials User Account Tutorials Hardware & Drivers Tutorials Appearance & Personalization Tutorials Backup & Restore Tutorials Music, Photo, Video and Media Tutorials Power Management Tutorials

New Menu - Context and File

Update your Vista Drivers Update Your Drivers Now!!
Poll: Did this Tutorial help and work for you?
Poll Options
Did this Tutorial help and work for you?

Comment
 
Tutorial Tools Display Modes
<!-- google_ad_section_start -->New Menu - Context and File<!-- google_ad_section_end -->
New Menu - Context and File
How to Add and Remove a New Menu Item in Vista
Published by Brink
12-07-2007

How to Add and Remove a New Menu Item in Vista
Information
  The New menu is located in the Context (right click) menu and Windows Explorer File menu. This will show you how to add and remove a item of your choice to the New menu.
NOTE
  In the root and root folders of C: drive, the only New context menu item available is Folder.
Tip
 
RELATED LINKS:
EXAMPLE: Context menu New menu Items Before (Default) and After
Name:  New_Context_Default.jpg
Views: 2951
Size:  19.9 KBName:  New_Context_After.jpg
Views: 2944
Size:  25.1 KB
EXAMPLE: File menu New menu Items Before (Default) and After
Name:  File_New_Default.jpg
Views: 2939
Size:  20.4 KBName:  File_New_After.jpg
Views: 2933
Size:  21.9 KB

WARNING
  Before you make changes to the registry, you should backup the ShellNew key under the file extension you will be changing. (See step 6 below)

1. To Backup Registry Key -
A) Right click ShellNew and click Export.
B) Save the exported REG file to where you want it.
NOTE: This is the back file.
2. To Restore Registry Key -
A) Right click on the exported REG file and click Merge.
B) Confirm the action to restore the registry key back to the same as the REG file.





Here's How:
1. Open the Start Menu.
2. In the white line (Start Search) area, type regedit and press Enter.
3. Click Continue button for UAC prompt.
4. In regedit, go to: HKEY_CLASSES_ROOT\(File Extension)
NOTE: Go to the key of the file extension (left pane) of the item you want to add to the New menu.
EXAMPLE: For a New Batch File, go to (.bat) : (See screenshot below)
HKEY_CLASSES_ROOT\.bat
WARNING
  For an existing file extension that you want to remove from the New Menu, skip this and go to to Option One (step 8) instead.

5. In the left pane, right click on the file extension (EX: .bat) and click on New and Key.

Click the image to open in full size.

6. Type ShellNew and press Enter. (See screenshot below)

Click the image to open in full size.




OPTION ONE
To Add or Remove a Blank New Item
7. To Add a Blank New Item -
NOTE: This will create a new blank (no content) file of the file extension.
Name:  New_Item.jpg
Views: 2955
Size:  4.0 KB
A) In the right pane, right click on a empty area and click on New and String Value. (See screenshot below step 6)
B) Type NullFile and press Enter. (See screenshot below)
C) Continue to step 9, or go to step 13.
Click the image to open in full size.

8. To Remove the Blank New Item or Already Existing Item -
A) In the left pane of the file extension, right click on ShellNew and click Delete. (See screenshot above)
NOTE: To just hide it instead to make it easy to restore again later if you wanted, right click on ShellNew and click on Rename. Rename it to ShellNew*. To unhide it, just remove the * from the name.

B) Continue to step 9, or go to step 13.
OPTION TWO
To Add or Remove a New Item with Content or Data
9. To Add a New Item with Content or Data -
A) Do step 7 first.
NOTE: This will create a new file of the file extenstion with content or data the you will enter in step D below.
EXAMPLE: When you right click on the created New item and click Edit, you will have the content you added in it.
Name:  New_Item.jpg
Views: 2955
Size:  4.0 KBName:  Edit_New_Item.jpg
Views: 2904
Size:  33.2 KB
B) In the right pane, right click on a empty area and click on New and String Value. (See screenshot above)
C) Type Data and press Enter. (See screenshot below)
D) In the right pane, right click on Data and click Modify.
Click the image to open in full size.
E) Type in the Text or Data content that you want the New item to always have when created and click OK. (See screenshot below)
Name:  Modify_Data.jpg
Views: 2888
Size:  30.6 KB
F) You should now see something like this. (See screenshot below)
G) Continue to step 11, or go to step 13.
Click the image to open in full size.

10. To Remove a New Item with Content or Data -
A) In the right pane, right click on Data and click Delete. (See screenshot above)
NOTE: To just hide it instead to make it easy to restore again later if you wanted, right click on ShellNew and click on Rename. Rename it to ShellNew*. To unhide it, just remove the * from the name.

B) Continue to step 11, or go to step 13.
OPTION THREE
To Add or Remove a New Item that is a Copy of Another File
11. To Add a New Item that is a Copy of Another File -
WARNING: This will override step 7 and 9, so you will need to choose to do either those steps or this step.
NOTE: This will create a new file of the file extension that is a copy of the file you will specify in step 11D below.

EXAMPLE: When you right click on the created New item and click Edit, you will have the copied content of the file you chose.
Name:  New_Item.jpg
Views: 2955
Size:  4.0 KBName:  Edit_New_Item2.jpg
Views: 2871
Size:  34.8 KB
A) In the right pane, right click on a empty area and click on New and String Value. (See screenshot below step 6)
B) Type FileName and press Enter. (See screenshot below)
C) In the right pane, right click on FileName and click Modify.
Click the image to open in full size.
D) Type in the full path of the file you want copied and click OK. (See example screenshot below)
NOTE: If you add the file you want copied into C:\Windows\ShellNew , then you will just need to type the name of the file instead. (EX:Old Batch File.bat)
WARNIING: The file you want copied must have the same file extension.
Name:  Modify_FileName.jpg
Views: 2855
Size:  33.5 KB
E) You should see something like this now. (See screenshot below)
Click the image to open in full size.
F) Go to step 13.
12. To Remove a New Item that is a Copy of Another File -
A) In the left pane, right click on ShellNew and click Delete. (See screenshot above)
NOTE: To just hide it instead to make it easy to restore again later if you wanted, right click on ShellNew and click on Rename. Rename it to ShellNew*. To unhide it, just remove the * from the name.
13. Close regedit.
14. Logoff and Logon, or restart the computer to apply the changes.
That's it,
Shawn

Published by
Brink's Avatar
Administrator
Join Date: Apr 2007
Location: Texas, USA
Posts: 16,485
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Applies to
All Vista Versions
64 Bit & 32 Bit

Old 03-01-2008  
pippo
Newbie


Join Date: Mar 2008
Vista Home Premium 32bit
 
Rep Power: 5
pippo is on a distinguished road
  pippo is offline

Re: New Menu - Context and File

when I right click I can't get the "new" commands.
I have lost the "new" entirely..
It is not empty but it doesn't exist!
And... on the explorer menu: "create new folder" doesn't work.
I can't create folder

How I can fix this?

thanks. pippo from sicily.

My System SpecsSystem Spec
Old 03-01-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: New Menu - Context and File

Hi pippo,

Welcome to Vista x64 Forums.

See if running a sfc /scannow command can find and fix any system file error that may be related to this. This will show you how.

System Files - SFC Command

Shawn
My System SpecsSystem Spec
Old 07-18-2008  
niGht kiD's Avatar
niGht kiD
hello KiDdy


Join Date: Dec 2007
Vista™ Business 32-bit
Malaysia
 
Rep Power: 9
niGht kiD will become famous soon enoughniGht kiD will become famous soon enough
  niGht kiD is offline

Re: New Menu - Context and File

Hi Brink, do you know a way to remove those items under New menu except Folder and Shortcut?

Click the image to open in full size.
My System SpecsSystem Spec
Old 07-18-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: New Menu - Context and File

Hi niGht kiD,

You can go to each file extension in the registry for those entries and rename the ShellNew key to ShellNew* to hide them without deleting them incase you want to add them back by renaming it back to just ShellNew. If you do not know the file extension for them, then just click on one to create a new file of it to see the extension.

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 07-18-2008  
niGht kiD's Avatar
niGht kiD
hello KiDdy


Join Date: Dec 2007
Vista™ Business 32-bit
Malaysia
 
Rep Power: 9
niGht kiD will become famous soon enoughniGht kiD will become famous soon enough
  niGht kiD is offline

Re: New Menu - Context and File

Thank you Brink
My System SpecsSystem Spec
Old 07-18-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: New Menu - Context and File

Your welcome.
My System SpecsSystem Spec
Old 07-27-2008  
kaisellgren
Junior Member


Join Date: Jun 2008
Vista Ultimate x64
 
Rep Power: 3
kaisellgren is on a distinguished road
  kaisellgren is offline

Re: New Menu - Context and File

Hi Brink!

Any ideas why this does not work for me?

I'm trying to add .php to the new context menu. I tried NullFile, NullFile + Data and FileName but nothing worked. I did restart my Vista x64 Ultimate also. It just does not appear there. I managed to make .reg appear, but .php does not work for some reason.
My System SpecsSystem Spec
Old 07-27-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: New Menu - Context and File

Hi Kaisellgren,

Do you have a program installed that can read PHP files?

Shawn
My System SpecsSystem Spec
Old 07-27-2008  
kaisellgren
Junior Member


Join Date: Jun 2008
Vista Ultimate x64
 
Rep Power: 3
kaisellgren is on a distinguished road
  kaisellgren is offline

Re: New Menu - Context and File

Quote:
Brink
View Post
Hi Kaisellgren,

Do you have a program installed that can read PHP files?

Shawn
Yes, several.

Zend Studio, phpDesigner and Notepad2. Default program is set to Notepad2.
My System SpecsSystem Spec
Comment

Tags
context menu, file

Tutorial Tools
Display Modes


Update your Vista Drivers Update Your Drivers Now!!

Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Context Menu - Add View and Print File Directory Brink Tutorials 0 04-10-2008 03:48 PM
New Text File - Context Menu Windybut Vista General 5 09-20-2007 07:40 PM
Remove entries from the "new" file context menu? Hans Vista General 2 07-22-2007 03:02 PM
File associations - open with - context menu Juan Herrero Vista file management 0 03-28-2007 06:14 AM
BUG: Can't create file on root from context menu Jared \(Home\) Vista General 2 11-30-2006 05:27 AM



Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008
Tutorial powered by GARS 2.1.8m ©2005-2006