用批处理实现关机,注销,重启和锁定计算机
发布时间:2016-04-19, 14:28:18 分类:Linux | 编辑 off 网址 | 辅助
正文 370字数 63,732阅读
定时关机 shutdown–s –t 600 (该行命令表示让系统在600秒后自动关机,600也可以设置为其它值)
取消自动关机 shutdown -a
迅速强制关机 shutdown -s -f -t 0 (若不指定时间,则默认为一分钟后执行,-f表示强制关闭正在运行的应用程序,不前台警告用户,-f也可以不要,加上后能加快关机速度!另外,关机还可以用命令 shutdown -p 实现)
注销 shutdown -l
重启 shutdown -r (默认为一分钟,若要立即重启,需修改命令为 shutdown -r -t 0 )
休眠 shutdown -h (需要电脑有该功能才行)
锁定计算机 rundll32 user32.dll,LockWorkStation
Run code
Cut to clipboard
(支付宝)给作者钱财以资鼓励 (微信)→
暂无评论 »