Running other program in VB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joris De Groote

    #1

    Running other program in VB

    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


  • Chris

    #2
    Re: Running other program in VB

    Joris De Groote wrote:[color=blue]
    > 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
    >
    >[/color]

    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

    Comment

    • Joris De Groote

      #3
      Re: Running other program in VB

      Thanks for the quick response :)

      "Chris" <no@spam.com> wrote in message
      news:OyshrP$VGH A.4308@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Joris De Groote wrote:[color=green]
      >> 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[/color]
      >
      > 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[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Running other program in VB

        "Joris De Groote" <joris.degroote @skynet.be> schrieb:[color=blue]
        > 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?[/color]

        \\\
        Imports System.Diagnost ics
        ....
        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/>

        Comment

        Working...