Running command line comands from .NET from .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi i want my VB.NEt application to run a seperate application from the command line, and then wait until this application has completed before continuing

I am currently using

System.Diagnostics.Process.Start(strApp) where strApp is the command line but this simply starts a new process... I want the command to be run as part of the existing process...

Any ideas?
 
hplloyd said:
Hi i want my VB.NEt application to run a seperate application from
the command line, and then wait until this application has completed
before continuing

I am currently using

System.Diagnostics.Process.Start(strApp) where strApp is the command
line but this simply starts a new process... I want the command to be
run as part of the existing process...

You can't launch one process "as part of" an existing process. It just
doesn't work like that. You can pause your app (or at least your
current thread) until the process has finished, if that would help.
 
Back
Top