473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Shell/Context menu from a C# app

Hi everybody,

I've written a C# console app, MyApp.exe, which takes an XML file as an
argument and processes it, e.g.

MyApp.exe "C:\SomeFile.xml"

This works great when I call it from a command prompt. What I would
like to do, is be able to right-click on an XML file, and have "Import
into MyApp" appear in the menu, below Open. I've seen other programs
such as Dreamweaver and Visual Studio do this. Having a look at the
registry it appears that adding a key under
HKEY_CLASSES_ROOT\xmlfile\shell gets the "Import into MyApp" text to
appear on a right click, but I can't actually get clicking on this to
respond to pass the file as an argument to MyApp.exe.

I found an article (here:
http://www.theserverside.net/article...hellExtensions)
but it's a little over my head. Would anyone have any idea how to
accomplish what I want to do? Any help would be appreciated.

Thanks,

Brian

Nov 17 '05 #1
0 833

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Francesco | last post by:
Hello Pythonnian's (sorry for crossposting) I have written on the base of Miro Rajic a (still) small filemanager in wxPython. Now I want to add (for Windows XP) a explorer shell context menu....
4
by: yxq | last post by:
Hello Can anyone tell me Context Menu shell extension? It is better that provide some samples or links. Thanks
0
by: Lesley | last post by:
How can I invoke the standard Windows Shell Context menu for a file or folder from vb.net? I have a treeview with nodes in it representing files and folders, as in windows explorer and when I...
1
by: Luhar | last post by:
Greetings, I'd like to write a shell extension so that a user can right-click on any file, regardless of its extension, and my extension will appear as one of the choices on the context menu...
2
by: elziko | last post by:
I understand how to edit the registry to add context menu items in windows for any file type. I know I can use %1 for the default value of the command key to signify the filename that has been...
0
by: lushdog | last post by:
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer if any file is selected, i.e. it's registered in the * section of Classes in the registry. ...
1
by: Johan | last post by:
I'm trying to send files from the shell context menu to my application. To do this I have added a registry key like this: "hkey_classes_root\*\shell\Default" = "C:\my_program.exe" "%1" Now,...
1
by: giddy | last post by:
Hi , I've read this a long time ago , read it again:...
3
by: Poggs | last post by:
Hi everyone, I used the pattern for Shell Extensions for Context menu from Dino Esposito's article. However I implemented it in more than one application and it seems that those two right click...
5
by: AGP | last post by:
I have been looking far and wide for an easy to implement shell extension. My needs are basic...for two file extensions .YYY and .ZZZ I would like the context menu in explorer to simply show my app...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.