running a called exe before returning to the calling app

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
B

Bernie Yaeger

I'd like to run an external exe before returning to the calling app. For
example:
System.Diagnostics.Process.Start("f:\imcapps\xbuild\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it to
begin running until xbuild.exe does its stuff. Any way I can do this, other
than an extensive for loop beneath this to delay its effect?

Thanks for any help.

Bernie Yaeger
 
* "Bernie Yaeger said:
I'd like to run an external exe before returning to the calling app. For
example:
System.Diagnostics.Process.Start("f:\imcapps\xbuild\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it to
begin running until xbuild.exe does its stuff. Any way I can do this, other
than an extensive for loop beneath this to delay its effect?

\\\
Imports System.Diagnostics
..
..
..
Dim p As Process = Process.Start("C:\foo.exe")
p.WaitForExit()
///
 
Back
Top