Home All Groups Group Topic Archive Search About

Running other program in VB

Author
4 Apr 2006 2:22 PM
Joris De Groote
Hi

Is it possible with VB.NET to start another program (winrar), to let the
program finish and then to continue?
How can I do this?

Thanks
Joris

Author
4 Apr 2006 1:27 PM
Chris
Joris De Groote wrote:
> Hi
>
> Is it possible with VB.NET to start another program (winrar), to let the
> program finish and then to continue?
> How can I do this?
>
> Thanks
> Joris
>
>

Take a look at the Process & ProcessInfo classes.  They will do what you
are looking to do.

I'm guessing you are doing this to extract files, you may be able to do
this with a .net component if you look around for one.

Chris
Author
4 Apr 2006 2:36 PM
Joris De Groote
Thanks for the quick response :)

Show quoteHide quote
"Chris" <no@spam.com> wrote in message
news:OyshrP$VGHA.4308@TK2MSFTNGP12.phx.gbl...
> Joris De Groote wrote:
>> Hi
>>
>> Is it possible with VB.NET to start another program (winrar), to let the
>> program finish and then to continue?
>> How can I do this?
>>
>> Thanks
>> Joris
>
> Take a look at the Process & ProcessInfo classes.  They will do what you
> are looking to do.
>
> I'm guessing you are doing this to extract files, you may be able to do
> this with a .net component if you look around for one.
>
> Chris
Author
4 Apr 2006 3:12 PM
Herfried K. Wagner [MVP]
"Joris De Groote" <joris.degro***@skynet.be> schrieb:
> Is it possible with VB.NET to start another program (winrar), to let the
> program finish and then to continue?
> How can I do this?

\\\
Imports System.Diagnostics
....
Dim p As Process = Process.Start(...)
p.WaitForExit()
....
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>