Catching Dos console output from within Java Class

From: IchBin (weconsul_at_ptd.net)
Date: 02/28/05


Date: Mon, 28 Feb 2005 04:38:55 -0500

Is it possible to not just to issue a Dos cmd from a java class but more
importantly encapsulate the Dos output back into a buffer that java can
use..? Not just pipe the Dos command to a dos file and then reading that
file. I am running under Windows XP SP 2. Reason: So I could say display
a running status of a NetStat command I want to monitor.

Sorry just never tried it.

-- 
Thanks in Advance...
IchBin
__________________________________________________________________________
'The meeting of two personalities is like the contact of two chemical 
substances:  if there is any reaction, both are transformed.'
-  Carl Gustav Jung,  (1875-1961),  psychiatrist and psychologist


Relevant Pages

  • Re: Catching Dos console output from within Java Class
    ... > importantly encapsulate the Dos output back into a buffer that java can ... Not just pipe the Dos command to a dos file and then reading that ...
    (comp.lang.java.programmer)
  • Re: Catching Dos console output from within Java Class
    ... > Is it possible to not just to issue a Dos cmd from a java class but more ... Not just pipe the Dos command to a dos file and then reading that ...
    (comp.lang.java.programmer)
  • Re: Catching Dos console output from within Java Class
    ... Lothar Kimmeringer wrote: ... >>Is it possible to not just to issue a Dos cmd from a java class but more ... Not just pipe the Dos command to a dos file and then reading that ...
    (comp.lang.java.programmer)
  • Re: The Save-With-Replace Bug
    ... reality just a modified version of the DOS for the 1540, ... The SAVE@ bug is simply the result of a coding error ... in the disk command. ... ALWAYS reset your disk drive (using the "UJ" DOS command or one of its ...
    (comp.sys.cbm)
  • Combining Files - Think Outside the Box
    ... I daily get a file of sales on the product I ... I have been trying to avoid opening one file at a ... in the same folder (or Directory as DOS calls them), ... and using the DOS command: ...
    (microsoft.public.excel.misc)