CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    May 2010
    Posts
    10

    [SOLVED]CMD.exe input/output redirection or piping

    I didn't see anything in search or FAQ, but if I just missed it then I apologize.

    (Windows Platform)
    My end goal is to run console commands on a remote machine via telnet entirely programmatically, for the sake of automation. This would require, I assume, being able to spawn a child cmd.exe and pipe keyboard input into it and read the output.

    I've read msdn and support.microsoft.com articles and everything I can find is just a child program that spits out pipe contents, not that can control a separate cmd.exe program.

    Is this easy/hard/impossible or am i just looking in the wrong direction?

    Thanks in advance.

    Hoobs

    [SOLVED]

    This thread was infinitely helpful.
    http://www.gamedev.net/community/for...page=1�
    Last edited by Hoobs; May 13th, 2010 at 12:03 PM. Reason: Solved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured