code_junkie

Finding the default application for opening a particular file type on Windows

Nov 11th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. System.Diagnostics.Process.Start( "C:......myfile.html" );
  2.  
  3. System.Diagnostics.Process.Start( "C:......myfile.txt" );
  4.  
  5. HKEY_CLASSES_ROOT.txt
  6.  
  7. HKEY_CLASSES_ROOTtxtfile
  8.  
  9. HKEY_CLASSES_ROOTtxtfileshellopencommand
Add Comment
Please, Sign In to add comment