?
Solved

Shell Extension

Posted on 2000-05-12
6
Medium Priority
?
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…
Suggested Courses

719 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