コンピューターをインターネットから切断したいのですが、考えられる最善の方法は、cmd から ipconfig/release を実行することです。そうするために、私はやった
Process result = Runtime.getRuntime().exec("ipconfig/release");
これはエラーになりますが、
java.io.IOException: Cannot run program "ipconfig/release": CreateProcess error=
2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at threadio.run(checkmac.java:141)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
どういう意味かわかりません。
私が間違っていることはありますか?ルーターから切断するためのより良い代替手段はありますか?