Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 7:45
adam.m.b.nelson14-Feb-13 7:45 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 8:02
adam.m.b.nelson14-Feb-13 8:02 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 6:29
mveRichard MacCutchan14-Feb-13 6:29 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 7:04
adam.m.b.nelson14-Feb-13 7:04 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 7:21
mveRichard MacCutchan14-Feb-13 7:21 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 8:06
adam.m.b.nelson14-Feb-13 8:06 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 9:41
mveRichard MacCutchan14-Feb-13 9:41 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 9:48
adam.m.b.nelson14-Feb-13 9:48 
Granted I am completely and utterly lost, but from the examples I have seen everything seems to be "right" but it still doesn't work.

Let's simplify this and say I simply want to write a line to the CMD window, from my GUI, and leave it sitting there staring at me. This program below should do that, NO?

C#
private void btnKapow_Click(object sender, EventArgs e)
{
    Process Temp = Process.Start("C:/Windows/System32/cmd.exe");
    Temp.StartInfo.UseShellExecute = false;
    Temp.StartInfo.RedirectStandardInput = true;
    //Temp.StartInfo.RedirectStandardOutput = true;
    //Temp.StartInfo.RedirectStandardError = true;
    Temp.Start();
    Temp.StandardInput.WriteLine("Test");
    Temp.Close();
}


I'm completely out of my domain here, I'm an embedded programmer, and have built some GUI's in the past without an issue, but this single process is far more indepth than anything I have done before.
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 10:08
mveRichard MacCutchan14-Feb-13 10:08 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 10:27
adam.m.b.nelson14-Feb-13 10:27 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 22:57
mveRichard MacCutchan14-Feb-13 22:57 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson15-Feb-13 2:21
adam.m.b.nelson15-Feb-13 2:21 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson3-Feb-15 6:11
adam.m.b.nelson3-Feb-15 6:11 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Richard MacCutchan14-Feb-13 6:35
mveRichard MacCutchan14-Feb-13 6:35 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 6:54
adam.m.b.nelson14-Feb-13 6:54 
AnswerRe: Send/Receive text to CMD from C# GUI Pin
Alan N14-Feb-13 7:32
Alan N14-Feb-13 7:32 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 7:48
adam.m.b.nelson14-Feb-13 7:48 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson14-Feb-13 8:23
adam.m.b.nelson14-Feb-13 8:23 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
Alan N14-Feb-13 9:57
Alan N14-Feb-13 9:57 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
jschell14-Feb-13 11:44
jschell14-Feb-13 11:44 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
adam.m.b.nelson15-Feb-13 2:22
adam.m.b.nelson15-Feb-13 2:22 
GeneralRe: Send/Receive text to CMD from C# GUI Pin
jschell15-Feb-13 8:57
jschell15-Feb-13 8:57 
Questionobject recognition Pin
manoj dhunelg14-Feb-13 2:42
manoj dhunelg14-Feb-13 2:42 
AnswerRe: object recognition Pin
Richard MacCutchan14-Feb-13 3:41
mveRichard MacCutchan14-Feb-13 3:41 
AnswerRe: object recognition Pin
Dave Kreskowiak14-Feb-13 6:14
mveDave Kreskowiak14-Feb-13 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.