简体   繁体   中英

C# - get Windows association for a random file

In C#, I'm trying to take some random file selected by a user, and determine the Windows Association for the program.

I'd like to use this to provide some helpful information to the user about the program which will run.

This is a portfolio tool where generic files can be attached to a record.

1851520 is a similar question, and from that question C# AF_FileAssociations looks to have what you need.

Failing that, System File Association on Codeproject looks to have the code to retrieve file association info.

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