A
Allan Bredahl
Hi
I'm having a little trouble with starting a Process via a filename like:
Process _process = System.Diagnostics.Process.Start("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\Notepad.exe"
and so on
Because if I do this it works :
Process _process = System.Diagnostics.Process.Start("C:\Program
Files\Microsoft Office\Office12\winword.exe", "c:\test.doc");
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.Diagnostics.Process.Start("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\Notepad.exe"
and so on
Because if I do this it works :
Process _process = System.Diagnostics.Process.Start("C:\Program
Files\Microsoft Office\Office12\winword.exe", "c:\test.doc");
Somebody have a heloing hand here ?
Thanks in advance
Allan