C # the right way for file associations

I was looking for a suitable way to get file associations working on WinXP and higher. An association should be replaced if it already exists. The application that I developed always runs in administrator mode, so rights should not be a problem. ''

I came across some old posts that included code sample, but some of them did not work well enough, and some were not at all. I use this post to make a final decision on the method that I will try to use, and I am looking for as much feedback as possible.

+2
source share

All Articles