Re: windows cmd



Hi,

focode wrote:
i have a program through which i can execute command written in a
batch file , i wanted to know how can i read the values returned by
command prompt , if any one can help me then please


You can communicate with a process by standard input, output and error streams.

The output of the process may be obtained by Process#getInputStream and/or Process#getErrorStream.

Input to the process may be given by writing to the stream returned by Process#getOutputStream.

Additionally, a process returns with an exit code which may be retrieved by Process#exitValue.

HTH
Michael
.



Relevant Pages