How to Run external BAT file and Close App

  • Thread starter Thread starter B-Dog
  • Start date Start date
B

B-Dog

I want to run a batch file the exit the application but when I do that the
application doesn't close till the batch file is complete. Could someone
help a rookie? Thanks
 
Hi,

Dim pr as process = Process.Start("MyFile.Bat")
pr.waitforexit

Ken
-------------
 
Thanks, we were running into a problem cause we were only closing the form
and not the application running in the tray. Thanks!
 
* "B-Dog said:
I want to run a batch file the exit the application but when I do that the
application doesn't close till the batch file is complete. Could someone
help a rookie?

\\\
Imports System.Diagnostics
..
..
..
Process.Start("C:\foo.bat")
///
 
Back
Top