Runtime类是一个单例类
Runtime r = Runtime.getRuntime(); //r.exec("shutdown -s -t 300"); //300秒后关机 r.exec("shutdown -a"); //取消关机
posted on 2017-02-16 19:31 LoaderMan 阅读(182) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 LoaderMan Powered by .NET 8.0 on Kubernetes