Solved

Shell Extension

Posted on 2000-05-12
6
167 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 43

Accepted Solution

by:
TimCottee earned 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

867 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

23 Experts available now in Live!

Get 1:1 Help Now