• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

Adding function to the windows right click file menu.

How can I add my app to the list of file functions. In the windows explorer right click file menu.
0
stephenblade
Asked:
stephenblade
  • 2
1 Solution
 
tmackCommented:
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
 
ArkCommented:
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
 
ArkCommented:
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
 
KDivadCommented:
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now