How do I get the return code in Java after executing a windows command line command

前端 未结 4 1378
渐次进展
渐次进展 2021-01-12 05:17

I\'m doing something like this in Java right now

Process p = Runtime.getRuntime().exec(\"ping -n 1 -w 100 127.0.0.1\")

How can I read the w

4条回答
提交回复
热议问题