tags:

views:

79

answers:

2

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.

+1  A: 

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.

Dan F
+1  A: 

This is a duplicate of File Associations in C#.

This answer intentionally marked as Community Wiki.

Jason