[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�
Re: CMD.exe input/output redirection or piping
Sounds like you found something that worked. If you're interested in heavy-duty automation on Windows, I recommend cygwin (link) - a linux terminal emulator for Windows. I have used it extensively with shell scripting to automate a wide variety of data processing functions. I've also heard good things about PowerShell (wikipedia link), but have not used it personally.