R
Ray Mitchell
Hello,
From within a C# application I would like to start a process based upon the
default process associated with a specific file extension. For example, if I
provide File.doc as an argument, I want Word (or whatever application is
currently associated with .doc files) to start and open file File.doc. On
the other hand, if I provide File.wav as an argument, I want MediaPlayer (or
whatever application is currently associated with .wav files) to open and
used File.wav. I know how to use the Process class to start a specific
application, but what do I need to do to start an application with which a
particular extension is associated?
Thanks,
Ray
From within a C# application I would like to start a process based upon the
default process associated with a specific file extension. For example, if I
provide File.doc as an argument, I want Word (or whatever application is
currently associated with .doc files) to start and open file File.doc. On
the other hand, if I provide File.wav as an argument, I want MediaPlayer (or
whatever application is currently associated with .wav files) to open and
used File.wav. I know how to use the Process class to start a specific
application, but what do I need to do to start an application with which a
particular extension is associated?
Thanks,
Ray