user1844188
user1844188

Reputation: 21

Right Clicking A File To Open It With A .NET Program

For example, if I made a compressor using the .NET Framework. How would I be able to right click a folder and open it in the compressor to compress it?

Upvotes: 2

Views: 570

Answers (2)

Vishal Suthar
Vishal Suthar

Reputation: 17194

Add a key under HKCR / filetype / Shell (where filetype is the filetype associated with the file extension, e.g. jpegfile)

For more details check this: Add a context menu on right-click

Upvotes: 1

Tilak
Tilak

Reputation: 30728

You need to associate file type (based on extension) with your compressor application.

For details check the article Understanding MS Windows File Associations.

It requires some registry entry modifications, that can be done from installer application.

Upvotes: 1

Related Questions