Executing BATCH files in VB.NET

  • Thread starter Thread starter Danel
  • Start date Start date
Hi Danel,
I think this will work I saw it being used in a different post. If that
doesn't you could always use ShellExecute from the Windows API.
Cheers,
Christian
 
Hello,

Danel said:
In VB60 we had Shell. How can one execute a .BAT file in
DOTNET. Thanks

Have a look at the 'System.Diagnostics.Process.Start' method. Notice that
'Shell' still works with VB.NET.
 
Danel said:
In VB60 we had Shell. How can one execute a .BAT file in
DOTNET. Thanks

VB.NET has shell as well... Does it not work for you? If not you can
always use the System.Diagnostics.Process class to accomplish this (I
believe the VB.NET shell command just uses this class underneath anyway :)

Tom Shelton
 
Back
Top