windows - Programatically invoking the default application for a filetype -


On a related note, say I got a file defined by a handler, I managed to get registered through the program? Not necessarily the actual code needed to do this, just a pointer for some docs or glossary on Google for it.

Thanks,

Chris

Specifying the file Is enough to start a new process, which you want to open from the default application - the rest is controlled by Windows. This is done in C # as follows.

  process. Start ("Foo. JPG");  

This will open the image using the default application for JPEG images.


Comments