I have a need to pipe the output from a DOS utility into my Java program.
I have tried a few combinations without success. I can't seem to find the right combination of DOS syntax and Java I/O that works.
Ideally, I would like to use the DOS pipe command (e.g. dir | more), but substitute my own Java application for 'more' ( dir | java Test1 :confused
.
Where will the input show up (I thought it would be System.in, but that doesn't seem to be the case -- it only seems to read keyboard input)?
Thanks in advance,
Roy.