472,126 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 11493
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.