Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • .net
  • c#
  • winapi
  • windows-shell

How can I programmatically check file that a file association exists before attempting to Process.Start() it?

May 22, 2011 See the question and my original answer on StackOverflow

It's better not use the registry directly but rely on the Windows API instead. Here is a link on SO that gives a .NET solution: How do I get File Type Information based on extension? (not MIME) in c#

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms