Input and output using runtime
I want to carry out a DOS command through java. To start DOS i use Runtime DOS = Runtime.getRunTime();DOS.exec("command.com");How do i / can i set up an input and output stream to pass commands to the newly opened DOS window and get the response?
[281 byte] By [
amccrea] at [2007-9-26 13:18:13]

None of the methods I mentioned have been deprecated. Readers and Writers are, however, the proper way to interface to text streams. This means, they are another level of abstraction on top of the stream, they do, however, not replace it.