Running a command line process

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

Guest

Hi I want my VB.NET application to run a command from the command line and then wait for the command to finish before continuing.

I am currently using

System.Diagnostics.Process.Start(strApp)

where strApp is the the command line text.

However this method starts a new process and therefore my application continues without waiting.

Any ideas?
 
* "=?Utf-8?B?aHBsbG95ZA==?= said:
Hi I want my VB.NET application to run a command from the command line and then wait for the command to finish before continuing.

I am currently using

System.Diagnostics.Process.Start(strApp)

where strApp is the the command line text.

However this method starts a new process and therefore my application continues without waiting.

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