I want to add my own custom file extension into the win 7 registry. And I also want to add a right click option "Play with xPlayer" for this extension.

I want to use it in my C# application. How can I do it using the registry?

link|improve this question
The question is offtopic here and belongs to superuser.com . The easiest way is to run regedit, check HKEY_CLASSES key for say ".mp3" subkey and see how it works. – Eugene Mayevski 'EldoS Corp Feb 8 '11 at 22:33
Sorry I forgot to say I want to use it in my C# application. And actually I have been doing exactly what you said for some hours now. But I can see here different type of pattern. So I need to know the standard way to do this. – Barun Feb 8 '11 at 22:37
feedback

migrated from stackoverflow.com Feb 9 '11 at 1:08

This question came from our site for professional and enthusiast programmers.

1 Answer

MSDN has extensive documentation on how to work with file extensions in the Registry. Start with these articles:

File Types and File Associations

Guidelines for File Associations and Default Programs

link|improve this answer
feedback

Your Answer

 
or
required, but never shown