开发者

C# - get Windows association for a random file

开发者 https://www.devze.com 2022-12-16 12:39 出处:网络
In C#, I\'m trying to ta开发者_运维问答ke some random file selected by a user, and determine the Windows Association for the program.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号