I am doing something similar in Java right now
Process p = Runtime.getRuntime().exec("ping -n 1 -w 100 127.0.0.1")
How can I read the exec Windows code? I already know how to read command line output from a command, but what if I just want 0 or 1 to tell me if it was successful or unsuccessful?
source share