Jump to content

Right Click File Explorer

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I'm creating a program and would like to add my program to the list when you right click on a certain file type in Windows Explorer. How do I do this?

The program is in C++ NET 2.0 and I would pass arguments such as the file path/name if right-clicked and my program is selected.

#2
brackett

brackett

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
There's a series of articles on CodeProject that deals with unmanaged C++ and shell extensions.

If you're interested in going the managed route, then you'll need to deal with COM interop. Dino Esposito has a good C# article detailing what you need.

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Ahh.. The second article doesn't load for me. I'll check again later.

I'll probably go managed if possible.

#4
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
Loads fine for me. I've done this before a long time ago but I can't remember where I got the information or how I did it. I do know it was a simple registry edit though.

#5
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
It works now. Must have been down when I clicked on the link. That is a lot of code for the managed version.

#6
kernelcoder

kernelcoder

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal
You can read about how can you do this by handling registry (independent of programming), read the 'The File Association with FileSystem' part from the tutorial here -- http://forum.codecal...zipperunzipper/.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users