i would like to create an internal control for a gui that mimicks the
os's command prompt, input is easy enough ( sending it to the system)
but how can I obtain the output generated by that input?
xen - 04 Oct 2007 00:57 GMT
>i would like to create an internal control for a gui that mimicks the
>os's command prompt, input is easy enough ( sending it to the system)
>but how can I obtain the output generated by that input?
Do you mean you want to execute programs from within that console and
catch their output?
Arne Vajhøj - 04 Oct 2007 01:12 GMT
> i would like to create an internal control for a gui that mimicks the
> os's command prompt, input is easy enough ( sending it to the system)
> but how can I obtain the output generated by that input?
Runtime.getRuntime().exec(cmdarrray) returns a Process which
has a getInputStream method.
Arne