how can i execute cmd command and show the result on cmd window
i make
i want execute this command on cmd window and the use see the result on itCode:Process proc = rt.exec("ping localhost");
Printable View
how can i execute cmd command and show the result on cmd window
i make
i want execute this command on cmd window and the use see the result on itCode:Process proc = rt.exec("ping localhost");
Ok, the way i did this for a project before was using runtime
Runtime.getRuntime().exec(cmd + command );
where cmd is the string "cmd.exe /c start"
and command is the string "ping localhost"
I tested this and it works with the small program i had.
that's exactly what i want thank you mr Debugger