Running command line comands from .NET from .NET

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?
 
J

Jon Skeet [C# MVP]

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.
 

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

Top