Runtime.exec() with get command output
hi,
How can i get output of command which i run with runtime.exec().
p.e.:
Process p;
Runtime r = Runtime.getRuntime();
p = r.exec("net use \\pc\dir pswd /user:username");
if command was done succesfully that in cmd is return this:
"The command completed successfully." I can get this text, but i dont know how.
Plese help
thank you
Palo

