Computing.Net > Forums > Windows XP > Adding a context menu item

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Adding a context menu item

Reply to Message Icon

Name: Dr. Nick
Date: June 18, 2003 at 16:49:12 Pacific
OS: WinXP Pro b2600 SP1
CPU/Ram: P4 2.0Ghz & 1024MB pc133
Comment:

Just wondering if anyone knows how to add a context menu item to ALL the file types. I know how to add an item to a specific type, but not all of them.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Dr. Nick
Date: June 18, 2003 at 16:59:14 Pacific
Reply:

Ha ha! It's always great when you figure something out for yourself!

In case anyone else cares...

I wanted to add a "View in Notepad" item to the context menu so that no matter what the filetype was, I could quickly see what it was in notepad. Here's how:

(Obviously the ''s are there only to show values, don't type them). Open regedit and go to HKCR and there should be a '*' key. Expand this. Now, if there's not one already, make a new key under '*' named 'shell'. Under this make a new key named 'View in Notepad' (note this is the text shone on the menu). Under this key make a new key named 'command'. In this key set the (Default) value to the command line you want to run. In my example I used '"C:\Windows\notepad.exe" %1'.

Tada! No need to reboot, just try right clicking a file, any file.


0

Response Number 2
Name: Aractus
Date: June 19, 2003 at 06:43:00 Pacific
Reply:

You know that's another thing I did today... I was fooling around in the associations and I saw there were two folder ones (they both act on the folders in the registry one is under folders and the other directories). I added some context items... and then I closed it. Now for some reason (don't ask me why or how) "open command window here" (which I didn't add what I was adding was png2bmp, bmp2png and pngcrush without much success i admit) became the default! I had to right click and click on OPEN to open the damn folders!!

What's worse on shortcuts (to folders) "Open" wasn't even in there!! So I deleted the OPEN COMMAND WINDOW here key and did it fix it? NO! So anyway I noticed open was in the Folder key but not in the Directory key, so I cloned

HKEY_CLASSES_ROOT\Folder\shell\open\

to

HKEY_CLASSES_ROOT\Directory\shell\open\

and vola! solved. XP and it's stupid problems!! Just thought I'd share this :)

Daniel


0

Response Number 3
Name: Dr. Nick
Date: June 19, 2003 at 12:30:21 Pacific
Reply:

Glad you fixed your problem. Certaintly a word of warning regarding file associations.

BE CAREFUL, and be prepared to reinstall Windows if you play with file associations in the registry, ESPECIALLY File Folders, Folders, and Directories. These are very easy to screw up, and very hard (sometimes essentially impossible) to fix.

Always, ALWAYS backup your registry!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Adding a context menu item

Windows Context Menu Items www.computing.net/answers/windows-xp/windows-context-menu-items/101041.html

Start menu context menu not working www.computing.net/answers/windows-xp/start-menu-context-menu-not-working/86078.html

Put a context Menu www.computing.net/answers/windows-xp/put-a-context-menu/159310.html