Hi Sunit,
why reinvent the wheel? See here:
[Debugging Tools for Windows]
http://www.microsoft.com/whdc/devtoo...nstallx86.mspx
It comes with a tool called "remote.exe" which can run a command
remotely and display its content (with interaction!) on your local system.
It's intended for the usage in driver development scenarios, but you can
use it wherever you think it will help you. And i think it is usefull in you
case,...
It just works fine and you dont have to redirect output stream with your
code.
BTW you should redirect any stream from the console to be able
to get any returned stream from the console output, this includes
also the errors and whatever your console outputs (socket, pipe,etc,...)
Regards
Kerem
---------
New Open Source Tools from me:
Calculate MD5 or SHA1 Hash for Files!
KHash Tools 1.0 Englisch:
http://download.chip.eu/de/KHash-Tools-1.0_1317168.html
http://entwicklung.junetz.de/project...ls%20v.1.0.zip
---------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
(E-Mail Removed)
Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2
Latest Open-Source Projects:
http://entwicklung.junetz.de
Sign my guestbook:
http://entwicklung.junetz.de/guestbook/
-----------------------
"This reply is provided as is, without warranty express or implied."