Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to run a command line from a running application through c#
Miguel Melo
Sep 13 2011 3:05 PM
3.3k
Reply
I've searched around and didn't find anything useful! :(
What i want is to have my C# app doing a command to a running process. This running process is a console application and i just need to enter the command "restart".. my try was:
Process[] processes = Process.GetProcessesByName("OpenSim.32BitLaunch");
foreach (Process p in processes)
{
p.StandardInput.WriteLine("restart");
}
And i get and exectipon: StandardIn not redirected. I've tried to set RedirectStandardInput but nothing :/
Regards
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Read SQL Statement from ACCESS View
RS232 300 baud communication problem