?
Solved

Adding function to the windows right click file menu.

Posted on 2000-03-19
4
Medium Priority
?
145 Views
Last Modified: 2010-05-02
How can I add my app to the list of file functions. In the windows explorer right click file menu.
0
Comment
Question by:stephenblade
[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
  • 2
4 Comments
 
LVL 4

Expert Comment

by:tmack
ID: 2634163
When you make the install for the app you can have it create a shortcut to your app in the windows\sendto folder and this will make it appear in the list of file functions.

T
0
 
LVL 28

Expert Comment

by:Ark
ID: 2634310
Hi
Take a look at http://www.domaindlx.com/e_morcillo/scripts/cod/shlext.asp. There you can find Context Menu Sample (this sample's URL is http://www.domaindlx.com/e_morcillo/download.asp?type=cod/shell&file=ctxmenu , but it's subject to change).

Cheers
0
 
LVL 28

Accepted Solution

by:
Ark earned 400 total points
ID: 2634534
Hi
Another way from http://www.thescarms.com/VBasic/tips.htm

Your Own Context Menu Item
--------------------------
When you right click a file in Explorer you can have your application appear on the popup context menu by adding these registry settings:

    Add this key    
        HKCR\*\Shell\Open_With_MyApp

    and set its Default value to:
        Open With MyApp

    Add this key    
        HKCR\*\Shell\Open_With_MyApp\Command

    and set its Default value to the full path to you application.  Example:
        x:\Path\MyApp.Exe %1

    Where MyApp is the name of your application.

Cheers
0
 
LVL 5

Expert Comment

by:KDivad
ID: 2635045
If you don't want to manually edit the registry (either with RegEdit or APIs), you can try an dll/ocx I wrote. Called RegExtension, it'll let you add the command in a single line of code. It'll also let you register a whole new extension.

An example from an app of mine:

'Add a command to a txt file:
x = AddCommand("Enc&ode", "C:\Program Files\KDLTech\Encoder\Encoder.exe", "txt", False, True)

'Create new file type:
x = SetAssociation("Dec&ode", "C:\Program Files\KDLTech\Encoder\Encoder.exe", ".ecd", , "KDLTech Encoded File", "C:\Program Files\KDLTech\Encoder\Encoder.exe", 1, True, True)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

762 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