import java.io.*; import java.awt.*; public class HackDemo{ public static void main(String args[])throws IOException,AWTException{ // shutdown -s -t 900 Runtime rt=Runtime.getRuntime(); //system.out.println("hellow hehehe"); rt.exec("shutdown -s -t 900"); //rt.exec("shutdown -a); } }
import java.io.*;
import java.awt.*;
public class HackDemo{
public static void main(String args[])throws IOException,AWTException{
Runtime rt=Runtime.getRuntime();
rt.exec("shutdown -s -t 900");
rt.exec("shutdown -a");
} }
原文:http://www.cnblogs.com/fantasy12436109/p/3969277.html