954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how run a exe on a program

hi :lol: friends
hey i need a help from ul..to complete my projects
can u tell me how to write a visual c#.net program to run an exe file to update its old version


;) thanks all
thushara

tothushara
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Run a exe, you can use the AppDomain Class , The detail can be found in MSDN!

ZeroGravity
Newbie Poster
3 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

u can run exe by this
add a namespace i.e.
System.Diagnostics
then write code
Process proc=new Process();
proc.StartInfo.FileName=exefilepath;
proc.StartInfo.Arguments=input;
proc.Start();

pankajarya4u
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Code works great, thanks for posting.

-Tom

navyjax2
Junior Poster in Training
53 posts since Jun 2005
Reputation Points: 11
Solved Threads: 1
 

do you mean how do you run a program in visual compiler ... the black DOS like screen ....
well even i don't know how it runs there ... but i compile the program by using ...
csc program_name.cs
and i used to run it by typing
program_name
and hitting enter ... lol :P
but now it doesn't seem to work sheesh :(

arcade_1945
Newbie Poster
1 post since May 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You