Problem with Process.WaitForExit()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ilara

    #1

    Problem with Process.WaitForExit()

    Hi there,

    I am startint a process with

    Process myproc = new Process();
    myproc.StartInf o = new ProcessStartInf o("C:\Test.rtf" );
    myproc.Start();
    myproc.WaitForE xit();

    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.WaitForE xit() throws an
    exception.

    Does anybody know what to do?

    Thanks.

    Ilara

    ..


Working...