Get standard application for txt files (.NET)
Posted
by
iDog
on Stack Overflow
See other posts from Stack Overflow
or by iDog
Published on 2011-02-18T23:02:30Z
Indexed on
2011/02/18
23:25 UTC
Read the original article
Hit count: 170
Possible Duplicate:
Finding the default application for opening a particular file type on Windows
Hello, in my application I want to open a text file, which has no .txt extension. Is there any way to get the standard application for .txt files in .NET (C#)? Sure I could use "notepad", but there might be some people (like me), who prefer another (their standard) editor.
Thank you very much.
Edit:
The registry key "[HKEY_CLASSES_ROOT]\txtfile\shell\open\command" references notepad, but that's not my standard app for txt files. How do I get the my current standard app for .txt?
© Stack Overflow or respective owner