[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Problem with Process.WaitForExit

=?Utf-8?B?cm9kY2hhcg==?=

11/2/2003 9:19:00 PM

Hi there,

I am startint a process with

Process myproc = new Process();
myproc.StartInfo = new ProcessStartInfo("C:\Test.rtf");
myproc.Start();
myproc.WaitForExit();

this works very well when Word isn't already open. When
Word is already openend then the rtf-File is displayed in
a new window but the myproc.WaitForExit() throws an
exception.

Does anybody know what to do?

Thanks.

Ilara