Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help Plz :) How to fire an .exe file?

0 views
Skip to first unread message

JMartin

unread,
Nov 4, 2002, 6:15:26 PM11/4/02
to
I have the path and the filename and now all I need to do is bind to a
button which is already created the command to fire the executable. I am not
doing anything fancy, not passing parameters or anything, just need to
simulate a 'double-click' on the .exe.
Thanks!
-Jeff


Greg Ewing [MVP]

unread,
Nov 4, 2002, 6:51:25 PM11/4/02
to
JMartin, look into the System.Diagnostics.Process class. The static Start()
method will do what you want.

--
Greg Ewing [MVP]
http://www.claritycon.com/

"JMartin" <a-j...@microsoft.com> wrote in message
news:e2c3dfFhCHA.1760@tkmsftngp12...

Joe Mayo

unread,
Nov 4, 2002, 6:53:02 PM11/4/02
to
Here you go:

System.Diagnostice.Process.Start(MyFullyQualifiedExecutablePath);

Joe

--
Joe Mayo, Author - C# Unleashed
http://www.amazon.com/exec/obidos/ASIN/067232122X/cstati
Free C# Tutorial @ C# Station
http://www.csharp-station.com


"JMartin" <a-j...@microsoft.com> wrote in message
news:e2c3dfFhCHA.1760@tkmsftngp12...

JMartin

unread,
Nov 4, 2002, 7:05:22 PM11/4/02
to
Thanks Much, that did it :)

"Joe Mayo" <jm...@nospam.csharp-station.com> wrote in message
news:uSe7e0FhCHA.1516@tkmsftngp09...

JMartin

unread,
Nov 4, 2002, 7:05:32 PM11/4/02
to
Thanks Much, that did it :)

"Greg Ewing [MVP]" <gewing@_NO_SPAM_claritycon.com> wrote in message
news:ef9OlzFhCHA.1516@tkmsftngp09...

0 new messages