try {
Runtime.getRuntime().exec("cmd /c shutdown -s -f");
} catch (IOException e) {
e.printStackTrace();
}怎么老弹出关机警告窗口呢?
Runtime.getRuntime().exec("cmd /c shutdown -s -f");
} catch (IOException e) {
e.printStackTrace();
}怎么老弹出关机警告窗口呢?
解决方案 »
- java.lang.NullPointerException at android.graphics.Canvas.throwIfRecycled
- 90后IT崛起!!!!!!!!!!!我自己写的软件,大家要支持下啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- JAVA中的JPanel如何刷新?
- 很诡异的问题,解决者一定多给分
- 关于SWT编写GUI程序分离控件的问题
- 如何执行一个 EXE 文件
- 求Java2从入门到精通(J2SE1.4版)配套光盘 [急急]
- 关于request.setAttribute()和request.getAttribute()的用法求助
- 请问
- 杭州的手机和小灵通
- MyEclipse6.0.1在那里有得下载呀?
- 请问 UpperCaseDocument这个类是在哪个包里面呢?
楼主【cooc123】截止到2008-06-28 22:29:19的历史汇总数据(不包括此帖):
发帖数:115 发帖分:1490
结贴数:36 结贴分:740
未结数:79 未结分:750
结贴率:31.30 % 结分率:49.66 %
楼主该结一些帖子了
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c
omment"] [-d up:xx:yy]
No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without war
ning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
我是用的 cmd /c 啊