Help coderanch get a
new server
by contributing to the fundraiser

Roy Hellinga

Greenhorn
+ Follow
since Jul 20, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Roy Hellinga

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.
23 years ago