How can I launch an application using C#?
Requirements: Must work on Windows XP and Windows Vista.
I have seen a sample from DinnerNow.net sampler that only works in Windows Vista.
How can I launch an application using C#?
Requirements: Must work on Windows XP and Windows Vista.
I have seen a sample from DinnerNow.net sampler that only works in Windows Vista.
Just put your file.exe in the \bin\Debug folder and use:
Adame Kane
this worked great!!!!!
Try this:
(Make sure you use the System.Diagnostics library)
Use
System.Diagnostics.Process.Start()
method.Check out this article on how to use it.
Here's a snippet of helpful code:
There is much more you can do with these objects, you should read the documentation: ProcessStartInfo, Process.
Additionally you will want to use the Environment Variables for your paths if at all possible: http://en.wikipedia.org/wiki/Environment_variable#Default_Values_on_Microsoft_Windows
E.G.
There are many more check out the link for a longer list.