Solved

Extend the  shell popup menu

Posted on 1997-06-03
2
155 Views
Last Modified: 2006-11-17
How can add items to the system pop up menu?
The items that i will add will call my exe file.
i.e: like WinZip add's it's 'add to zip', or like adding an my own item next to properties of 'my computer'.
I need to add my new entry to every pop up menu availble. i need the option not to show my new entry if neeeded.
0
Comment
Question by:DarkAge
2 Comments
 
LVL 3

Accepted Solution

by:
ChrisLewis earned 100 total points
Comment Utility
Edit the Registry for the extention that you want your menu to appear.

For Example, the MIDI player REG entry looks like this
(.MID files are of type midfile)

HKEY_CLASSES_ROOT\midfile\shell="Open"
HKEY_CLASSES_ROOT\midfile\shell\open="Open"
HKEY_CLASSES_ROOT\midfile\shell\open\command="C:\\WINDOWS\\mplayer.exe %1"
HKEY_CLASSES_ROOT\midfile\shell="Play"
HKEY_CLASSES_ROOT\midfile\shell\play="Play"
HKEY_CLASSES_ROOT\midfile\shell\play\command="C:\\WINDOWS\\mplayer.exe /play /close %1"

If you wanted to add a View command, you add the lines

HKEY_CLASSES_ROOT\midfile\shell="View"
HKEY_CLASSES_ROOT\midfile\shell\View="View"
HKEY_CLASSES_ROOT\midfile\shell\View\command="C:\\MYPROG.EXE  %1"

This should help

Chris

So you are basically adding the sub-key View, a sub-key under view called command, and a

0
 
LVL 1

Author Comment

by:DarkAge
Comment Utility
Edited text of question
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now