By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,358 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,358 IT Pros & Developers. It's quick & easy.

Executing extrenal application

P: n/a
Hi All,

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


Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
Rajeev Ramanujan wrote:
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
Nov 21 '05 #2

P: n/a
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
Nov 21 '05 #3

P: n/a
"Rajeev Ramanujan" <ra**************@vizual.co.in> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.