Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Shell Extension

Posted on 2000-05-12
6
Medium Priority
?
193 Views
Last Modified: 2010-05-02
I've written a small program which I currently have in my "Send To" folder so I can run the program on any file I right-click on.

I would like to use this program as a Shell Extension so it appears in the context menu in its own right (rather than as a subitem in Send To).

How do I go about this ?
0
Comment
Question by:paulstamp
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 2803888
In explorer, goto tools,options then filetypes tab. For the required file type add an action "View With PaulStamp's Application" or whatever and add the "MyApp.EXE %1" in the command line.

When you then right-click it will show your action in the menu and pass the file to that application for processing.
0
 
LVL 3

Author Comment

by:paulstamp
ID: 2803907
Ah... sorry I wasnt totally clear - I want it to work with all file types.

It is a hugely simple program which performs actions on the folder which a specified file sits in, ie if I click on a file c:\blah\foo.exe then my program will carry out an action on the folder c:\blah
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 2803929
The quickest way is run regedit, find this key and add

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\

Shell\<ActionName>\Command

(Default) is "c:\myapp.exe" %1
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 2803932
That should read

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*

Add Key
\Shell\<ActionName>\Command

Where <ActionName> is the name of your folder action

Item (Default) value is "c:\myapp.exe" %1

0
 
LVL 3

Author Comment

by:paulstamp
ID: 2803947
Spot on.. thanks a lot.
0
 
LVL 15

Expert Comment

by:lyonst
ID: 2803958
Hi Paul,

Have a look at this site - I think the answer you are looking for is here.

http://easyweb.easynet.co.uk/philippe.oget/uk/windows/right_click.htm

If not please post a reply and I wil look further.

Thanks,

T.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

972 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