How to Execute a cmd from a VB.net program

J

Jason

In VB.net 03 is there a way to execute a external file such a
C:\windows\fyle.vbs and have the .net program should wait for the run cmd to
finish executing before going on with the rest of the programs. similar to
..... WshShell.run "C:\windows\fyle.vbs",0,TRUE
 
A

Alwin Büchner [FRANK]

Hey

Try this:
Dim Dir As New
IO.DirectoryInfo(System.Environment.GetFolderPath(Environment.SpecialFolder.System))

System.Diagnostics.Process.Start(Dir.Parent.FullName + "\explorer.exe '",
Application.StartupPath)

Alwin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top