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
 
Hi,

Dim p As Process = Process.Start("Notepad.exe")

p.WaitForExit()

Ken
 
* "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()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top