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

system() like in C#

hi,
in c/c++ we have a function system() that lets us to call any external application from the c/c++ program. i wanted to knw that do we hve any similar function/method in C#?

kunal_ktr
Newbie Poster
10 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

What do you mean by "call them"? Are you talking about just launching them or actively sending data back and forth?

campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
 

yeah, suppose i call system as system("cmd.exe"), it launches command shell of windows. now if i want to do the same in C#, how do i do this???

kunal_ktr
Newbie Poster
10 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

try this

using System.Diagnostics;

System.Diagnostics.Process.Start(@"path to file here");
tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You