可以利用Runtime.getRuntime().exec
Runtime.getRuntime().exec("cmd /c ping localhost -n 2 > nul && del Delete.jar");
2表示2秒, Delete.jar是文件名.
可以利用Runtime.getRuntime().exec
Runtime.getRuntime().exec("cmd /c ping localhost -n 2 > nul && del Delete.jar");
2表示2秒, Delete.jar是文件名.