import java.io.IOException;
public class Demo01 {
public static void main(String[] args) throws IOException {
//自动关机程序 这里采用抛出异常
Runtime.getRuntime().exec("shutdown -s -t 600"); //600s后关机
//取消关机
Runtime.getRuntime().exec("shutdown -a");
}
}
原来小丑是我自己.我还以为是电脑坏了?
最新推荐文章于 2026-06-22 22:46:40 发布

660

被折叠的 条评论
为什么被折叠?



