Hi
I'm having a little trouble with starting a Process via a filename like:
Process _process = System.Diagnost ics.Process.Sta rt("c:\test.doc ");
It works great, but I just cant get the process.Exited event to fire.
It's just like the process dies and in this case Word is started in annother
process.
Therefore I need someway to control the Word process or alternatively
someway to get the default application in windows for each filetype.
".doc" --"C:\Program Files\Microsoft Office\Office12 \winword.exe"
".txt" --"C:\Windows\Not epad.exe"
and so on
Because if I do this it works :
Process _process = System.Diagnost ics.Process.Sta rt("C:\Program
Files\Microsoft Office\Office12 \winword.exe", "c:\test.do c");
Somebody have a heloing hand here ?
Thanks in advance
Allan
I'm having a little trouble with starting a Process via a filename like:
Process _process = System.Diagnost ics.Process.Sta rt("c:\test.doc ");
It works great, but I just cant get the process.Exited event to fire.
It's just like the process dies and in this case Word is started in annother
process.
Therefore I need someway to control the Word process or alternatively
someway to get the default application in windows for each filetype.
".doc" --"C:\Program Files\Microsoft Office\Office12 \winword.exe"
".txt" --"C:\Windows\Not epad.exe"
and so on
Because if I do this it works :
Process _process = System.Diagnost ics.Process.Sta rt("C:\Program
Files\Microsoft Office\Office12 \winword.exe", "c:\test.do c");
Somebody have a heloing hand here ?
Thanks in advance
Allan
Comment