Running other exe programs through vb. net

The sample code in VB.NET listed below demonstrates how to run other exe programs using VB.NET.

'Create a object for the process start info
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
'assign the filename for which the process has to be started
startInfo = New System.Diagnostics.ProcessStartInfo("D:\WINDOWS\system32\calc.exe")
pStart.StartInfo = startInfo
'start the process using start method


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: