码迷,mamicode.com
首页 > 其他好文 > 详细

shutdown -s -t

时间:2014-09-12 23:25:44      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   java   ar   strong   2014   

bubuko.com,布布扣

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

} }

shutdown -s -t

标签:style   blog   http   color   io   java   ar   strong   2014   

原文地址:http://www.cnblogs.com/fantasy12436109/p/3969277.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!