Executing extrenal application

  • Thread starter Thread starter Rajeev Ramanujan
  • Start date Start date
R

Rajeev Ramanujan

Hi All,

How to execute an extrenal application using VB .Net? Any commands
equvalent to the WindowsAPI CreateProcess.


Thanks
Rajeev R
 
Rajeev said:
Hi All,

How to execute an extrenal application using VB .Net? Any commands
equvalent to the WindowsAPI CreateProcess.


Thanks
Rajeev R

Look at the class called Process. Process.Start() will do what you need.

Chris
 
Rajeev,

A little sample from what Chris wrote, showing more elements you can use

\\\
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\windows\win.ini"
pi.FileName = "notepad.exe"
p.startinfo = pi
p.Start()
\\\
I hope this helps,

Cor
 
Rajeev Ramanujan said:
How to execute an extrenal application using VB .Net? Any commands
equvalent to the WindowsAPI CreateProcess.

Take a look at the 'System.Diagnostics.Process' class and its 'Start'
method, and VB.NET's 'Shell' function.
 
Back
Top