Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How can I capture output from the MS-DOS command prompt in WindowsME? All the normal tricks aren't working for me.
I'm using javac to compile java code. Javac spews out a long message. I try to capture it like this:
javac SomeClass.java | more
That doesn't work. Command prompt behaves as if I didn't pipe anything to more.
javac SomeClass.java > somefile.txt
That doesn't work - only an empty file gets produced.
There is also no way to significantly increase the screen buffer, so you can't scroll to read all the lines that you missed.
Does anyone have the solution, other than spending hundreds of dollars on an NT or Win2000 license for a more functional command prompt?

D Steffy....I have had every version (and still have) of DOS since DOS 1.0 and I don't remember either piping or redirecting working quite that way. Of course I am getting old now so that could explain why I don't remember...lol Anyway, if I am not mistaken either piping or redirecting to a file only worked with DOS internal commands such as "DIR", "TYPE", etc... However if I remember correctly you can redirect file output to the printer. javac SomeClass.java > prn I just tried piping and redirecting as I remember them working and it worked fine. Let me know if redirecting to the printer works. If not I still have every version of DOS and all the books so I know we can come up with something. It's my dinner time but as soon as I am done I will get my books out and check. (Man I loved DOS, ahh the good old days..lol).
Regards,
Doyle

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |