Jump to content

cbox


Recommended Posts

Posted

If you are trying to execute a .exe file. All you have to do is

 

Process.Start("C:\\example\\Documents\\Visual Studio 2008\\Projects\\example\\example.exe");

 

Note : This will not work without "using System.Diagnostics;", if you don't have this in your form, it will not recognize Process.

 

-Lakar

Posted
Thanks for specifying what was already used above xD.

 

But seriously, good idea pointing out that System.Diagnostics is required, unless you add it to the top of your program.

 

They both do the same thing overall, just different ways of writing them.

 

-Lakar

Posted (edited)

You can also run the process with arguments if acceptable.

 

Example:

Process.Start("firefox.exe","-url www.ibotmodz.net");

Edited by dschu012
Posted (edited)
Dark, your c# code isn't proper. c# is case-sensitive, you have "If" it should be "if". Also, brackets should be implemented. Edited by yungbol

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...