Re: windows cmd
- From: Michael Rauscher <michlmann@xxxxxx>
- Date: Sat, 20 Dec 2008 15:06:23 +0100
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
.
- References:
- windows cmd
- From: focode
- windows cmd
- Prev by Date: Download Moct Test tool for SCJP,OCP, OCA, Java, Oracle, Hibernate, JSP, C, C++, SQL, PL/SQL, Informatica and many more from TechFaq360
- Next by Date: KeyEvent for % key?
- Previous by thread: windows cmd
- Next by thread: Re: windows cmd
- Index(es):
Relevant Pages
|