简单JAVA自动关机与取消(完全无用,可以直接cmd)

在main函数中输入
Runtime.getRuntime().exec("shutdown -s -t 3600");一小时后关机
Runtime.getRuntime().exec("shutdown -a");取消关机

posted @ 2021-04-02 21:16  FantasticDoulbeFish  阅读(132)  评论(0编辑  收藏  举报