943,568 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 21307
  • C# RSS
Apr 4th, 2007
0

how run a exe on a program

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tothushara is offline Offline
1 posts
since Apr 2007
Apr 4th, 2007
0

Re: how run a exe on a program

Run a exe, you can use the AppDomain Class , The detail can be found in MSDN!
Last edited by ZeroGravity; Apr 4th, 2007 at 4:06 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ZeroGravity is offline Offline
3 posts
since Aug 2006
Apr 17th, 2007
0

Re: how run a exe on a program

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();

Reputation Points: 10
Solved Threads: 0
Newbie Poster
pankajarya4u is offline Offline
1 posts
since Apr 2007
Sep 3rd, 2008
0

Re: how run a exe on a program

Code works great, thanks for posting.

-Tom
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
navyjax2 is offline Offline
52 posts
since Jun 2005
May 9th, 2011
-1
Re: how run a exe on a program
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
but now it doesn't seem to work sheesh
Reputation Points: 10
Solved Threads: 0
Newbie Poster
arcade_1945 is offline Offline
1 posts
since May 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: custom Exception
Next Thread in C# Forum Timeline: How do I loop this XML?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC