Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

    
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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.