469,904 Members | 2,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

Executing BATCH files in VB.NET

In VB60 we had Shell. How can one execute a .BAT file in
DOTNET. Thanks
Nov 20 '05 #1
3 11426
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

"Danel" <kd**@hotmail.com> wrote in message
news:01****************************@phx.gbl...
In VB60 we had Shell. How can one execute a .BAT file in
DOTNET. Thanks

Nov 20 '05 #2
Hello,

"Danel" <kd**@hotmail.com> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Danel wrote:
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

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by (Pete Cresswell) | last post: by
2 posts views Thread by Pratibha | last post: by
4 posts views Thread by K Viltersten | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.