Solved

Adding function to the windows right click file menu.

Posted on 2000-03-19
4
139 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
  • 2
4 Comments
 
LVL 4

Expert Comment

by:tmack
Comment Utility
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 27

Expert Comment

by:Ark
Comment Utility
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 27

Accepted Solution

by:
Ark earned 100 total points
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
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…

744 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

19 Experts available now in Live!

Get 1:1 Help Now