No it wasnt that, althought if thats all you needed, Ie running a dos app and redirectiing output and input to/from files then sure use the > & < redirectors. But i think u said interactivily send commands to the dos window (and from that i assume u mean the application running in it).
What i was meaning was this
from COMMAND.COM /?
COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
[drive:]path Specifies the directory containing COMMAND.COM file.
device Specifies the device to use for command input and output.
the device can be like COM1: etc, however from memory what i had done was a first load a small program that created a COM5 (i think) and then you called COMMAND.COM COM5:
The small program constantly monitored com5in.txt for things to type and output to com5out.txt. very simple and very usable. However i cant remebe4r what the program was called or if it was even COM5 might have been like a name u could specificy even. It was a small dos util (freeware) So i couldnt even say if it would work under Xp. Did a good job under WFWg and 95 from memory.
PS: I think FiberOptics might be on a better path hear to a solution.