i would like to make a console app which will make an exsisting console app available over the network by redirect its input/output handles to a listening socket on another machine.
c:\redirect.exe -a:myoldapp.exe -h:220.127.116.11 -p:9999
redirect.exe = console app i would like to make
-a = console app to redirect
-h = IP of listening socket(host)
-p = port of listening socket
I've have seen similar things done with anonymous pipes. I'm not sure if it would be better to run cmd.exe first instead of myoldapp.exe, that way it would make the application cross platform. If this can be done I guess it would be better.