T
Terry Brown
I am trying to use WaitForExit to determine when an external application I
have launched has exited (duh!). I found examples everywhere and it
seemed simple and this works perfectly:
Dim myProcess As Process = _
System.Diagnostics.Process.Start("notepad.exe")
' wait until it exits
myProcess.WaitForExit()
MessageBox.Show("Notepad was closed at: " & _
myProcess.ExitTime & "." & _
System.Environment.NewLine & "Exit Code: " & _
myProcess.ExitCode)
myProcess.Close()
However, when I substitute the application I want to run for
"notepad.exe", the application runs, but WaitForExit returns immediately.
The application in question is synplify_pro.exe, a synthesis tool that
seems, at first glance, to be a normal windows application.
Any ideas on what is going on here? Any workarounds?
Terry Brown
have launched has exited (duh!). I found examples everywhere and it
seemed simple and this works perfectly:
Dim myProcess As Process = _
System.Diagnostics.Process.Start("notepad.exe")
' wait until it exits
myProcess.WaitForExit()
MessageBox.Show("Notepad was closed at: " & _
myProcess.ExitTime & "." & _
System.Environment.NewLine & "Exit Code: " & _
myProcess.ExitCode)
myProcess.Close()
However, when I substitute the application I want to run for
"notepad.exe", the application runs, but WaitForExit returns immediately.
The application in question is synplify_pro.exe, a synthesis tool that
seems, at first glance, to be a normal windows application.
Any ideas on what is going on here? Any workarounds?
Terry Brown