Solved

Shell Extension

Posted on 2000-05-12
6
169 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 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