how to start an .exe

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

Guest

Hi all,
i´d like to know how to start an .exe from C#. The .exe is an 'old
fashioned' C++ application.
Thank you all
Peter
 
Ener,

Three messages below you see this.

\\\
Dim ProcessStartInfo As New Process
ProcessStartInfo.FileName = stb.ToString
ProcessStartInfo.WorkingDirectory = [local dir]
ProcessStartInfo.WindowStyle = WindowStyle.Maximized
Process.StartInfo.Arguments = "whatever"
ProcessStartInfo.UseShellExecute = True
ProcessStartInfo.CreateNoWindow = False
ProcessStartInfo.Start
///
This is VB, only difference in my opinion is a ";" after every statement
and before that in the methods a () and change the first row into
Process ProcessStartInfo = new Process();

I hope this helps?

Cor
 
Look at System.Diagnostics.Process.Start(...) This should get you what
you need.

Have A Better One!

John M Deal, MCP
Necessity Software
 
Back
Top