944,144 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 31041
  • C# RSS
Jun 10th, 2007
0

open exe file using c#

Expand Post »
how can i open/close an exe file using c#? thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
jigoro is offline Offline
41 posts
since Jul 2006
Jun 10th, 2007
0

Re: open exe file using c#

what do you mean by Open? Do you want to execute the program:

Process.Start(@"C:\windows\notepad.exe");
Reputation Points: 10
Solved Threads: 2
Junior Poster
Mahen is offline Offline
144 posts
since Aug 2004
Jun 13th, 2007
0

Re: open exe file using c#

And that's found within:
using System.Diagnostics;

Reputation Points: 11
Solved Threads: 17
Junior Poster
mariocatch is offline Offline
103 posts
since Apr 2007
Jun 7th, 2010
0
Re: open exe file using c#
using System.Diagnostics


// string str = @"C:\windows\system32\notepad.exe";
// string str = @"C:\windows\system32\winamp.exe";
string str = @"C:\Documents and Settings\Puru\Desktop\NewsLetter\SendNewsletter.exe";
Process process = new Process();
process.StartInfo.FileName = str;
process.Start();
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RaviRaturi is offline Offline
1 posts
since Jun 2010

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: Print the crystal reports
Next Thread in C# Forum Timeline: Setting parent and child windows?





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


Follow us on Twitter


© 2011 DaniWeb® LLC