简体   繁体   中英

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?

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM