Launching an executable from my application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys,

I have a scenario where my application needs to run/start an application
that is already installed on my machine. let's say - run an executable
"ccc.exe".

How do I call this executable from within my application and run it?

Thanks!
 
Hi guys,

I have a scenario where my application needs to run/start an application
that is already installed on my machine. let's say - run an executable
"ccc.exe".

How do I call this executable from within my application and run it?

Thanks!

Use the Shell command or System.Diagnostics.Process (this one gives you
a lot more control)
 
Ori,

One of the most simple ones
\\\Notepad
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
 
Works, but only in my winform application.
I want to use it in a windows service I created, I tried running this form
OnStart, form OnContinue - nothing.

any idea?

Example:

Dim p As New Process
Dim pi As New ProcessStartInfo
pi.FileName = "bloodhound.exe"
p.StartInfo = pi
p.Start()
 

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