shutdown -s -t

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");

} }

posted @ 2014-09-12 22:49  fantasy12436109  阅读(805)  评论(0编辑  收藏  举报