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