How to Execute a cmd from a VB.net program

  • Thread starter Thread starter Jason
  • Start date Start date
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
 
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
 
Back
Top