Running a batch file synchonously

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eric.goforth@gmail.com

    #1

    Running a batch file synchonously

    Hello,

    I'm able to run a batch file from a VB.NET application like so:

    System.Diagnost ics.Process.Sta rt(AppDomain.Cu rrentDomain.Bas eDirectory
    & "saveMylist .bat " & sMYDir)

    However, I'd like my VB.NET application to wait for the batch file to
    complete before proceeding. Is there any way to do this?

    Thanks,
    Eric

  • GhostInAK

    #2
    Re: Running a batch file synchonously

    Hello eric.goforth@gm ail.com,

    Process.WaitFor Exit()

    -Boo
    [color=blue]
    > Hello,
    >
    > I'm able to run a batch file from a VB.NET application like so:
    >
    > System.Diagnost ics.Process.Sta rt(AppDomain.Cu rrentDomain.Bas eDirectory
    > & "saveMylist .bat " & sMYDir)
    >
    > However, I'd like my VB.NET application to wait for the batch file to
    > complete before proceeding. Is there any way to do this?
    >
    > Thanks,
    > Eric[/color]


    Comment

    • GhostInAK

      #3
      Re: Running a batch file synchonously

      Hello eric.goforth@gm ail.com,

      Process.WaitFor Exit

      -Boo
      [color=blue]
      > Hello,
      >
      > I'm able to run a batch file from a VB.NET application like so:
      >
      > System.Diagnost ics.Process.Sta rt(AppDomain.Cu rrentDomain.Bas eDirectory
      > & "saveMylist .bat " & sMYDir)
      >
      > However, I'd like my VB.NET application to wait for the batch file to
      > complete before proceeding. Is there any way to do this?
      >
      > Thanks,
      > Eric[/color]


      Comment

      • eric.goforth@gmail.com

        #4
        Re: Running a batch file synchonously


        GhostInAK wrote:[color=blue]
        > Hello eric.goforth@gm ail.com,
        >
        > Process.WaitFor Exit
        >
        > -Boo[/color]

        Thanks, that seems to do it for me.

        -Eric

        Comment

        Working...