Execute Another Application

  • Thread starter Thread starter Paul Cheetham
  • Start date Start date
P

Paul Cheetham

Hi,

I am trying to execute another application from my VB.Net app.
Using the Windows API I would use a WinExec call, but I don't seem to be
able to find an equivalent function in VB.Net

Can anyone help Me?
I've been searching for this for ages without luck so far.

Thankyou


Paul Cheetham
 
This is the .Net equivalant .....
Imports System.Diagnostics

Public Module modmain

Sub Main()

Dim NewProcess as Process = new Process

NewProcess.Start("C:\MyApplication.exe")

End Sub

End Module


regards

Michel Posseth [MCP]
 
Thanks Michel,

That's just what I needed.


Paul



m.posseth said:
This is the .Net equivalant .....
Imports System.Diagnostics

Public Module modmain

Sub Main()

Dim NewProcess as Process = new Process

NewProcess.Start("C:\MyApplication.exe")

End Sub

End Module


regards

Michel Posseth [MCP]



Hi,

I am trying to execute another application from my VB.Net app.
Using the Windows API I would use a WinExec call, but I don't seem to be
able to find an equivalent function in VB.Net

Can anyone help Me?
I've been searching for this for ages without luck so far.

Thankyou


Paul Cheetham
 

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

Back
Top