C# - get Windows association for a random file
In C#, I'm trying to ta开发者_运维问答ke 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.
精彩评论