Thanks, but I don't want such huge code for a small task.
I believe such a thing can be done with no big pain. Couple of days ago I had seen a codeo nsome site that showed stdin & stdout using Process and cmd. I searched a lot but couldn't find that site back.
On my start of process, immediately after 1 line, cmd needs to input username. The code I have written doesn't let the user write anything and just goes away. When and how can the app know that it needs to write/input something. If its the 1st time then its username, if 2nd time then password. That's it. Then no input only get the output.
But am not able to know when and how to know. Just saw WaitForInputIdle(). Might be that can help me. Will try with that.
I think you don't need anything going asynchronous here. Remove the OutputDataReceived event handler and the invoke to BeginOutputReadLine, so you can do it synchronously. For example:
I've not tested the code, but I guess it should work. The OutputDataReceived is only fired when a line is written on the output stream, so if there is not an end of line when it is asking for a username, you will not receive the event.
I have a query in teechart.
I have created a horizontal bar chart in C# using tee chart. Now i want to change the color of the bar depending on its value(e.g. green color for positive value & red for negative).
any settings in the property?
can anyone give solution on this?
Many times during working on web projects I come across handling the customized search page for comodity. Many times it contains 10 to 20 fields which is quite a good number to pass another page and to code.
I want to know if there is any efficient way to handle such situations.
Windows can react to specific key combinations, known as hotkeys or hooks. Google these terms. And have a look at functions such as RegisterHotKey and http://support.microsoft.com/kb/318804[^]. Explorer must be using one of those.
// Shut down the current app instance.
// Restart the app passing "/restart [processId]" as cmd line args
Process.Start(Application.ExecutablePath, "/restart" + Process.GetCurrentProcess().Id);
Jinal Desai - LIVE
Experience is mother of sage....