Home All Groups Group Topic Archive Search About

Running a batch file synchonously

Author
28 Jun 2006 10:08 PM
eric.goforth
Hello,

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

System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory
& "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

Author
28 Jun 2006 10:16 PM
GhostInAK
Hello eric.gofo***@gmail.com,

Process.WaitForExit()

-Boo

Show quoteHide quote
> Hello,
>
> I'm able to run a batch file from a VB.NET application like so:
>
> System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory
> & "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
Author
29 Jun 2006 6:29 PM
GhostInAK
Hello eric.gofo***@gmail.com,

Process.WaitForExit

-Boo

Show quoteHide quote
> Hello,
>
> I'm able to run a batch file from a VB.NET application like so:
>
> System.Diagnostics.Process.Start(AppDomain.CurrentDomain.BaseDirectory
> & "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
Author
29 Jun 2006 6:34 PM
eric.goforth
GhostInAK wrote:
> Hello eric.gofo***@gmail.com,
>
> Process.WaitForExit
>
> -Boo

Thanks, that seems to do it for me.

-Eric