【干货篇】如何优雅的在桌面上直接重启电脑或关机

发布于 2024-05-20  75 次阅读


当然是用bat命令啦(bushi)

食用方法:新建记事本,输入相关命令并保存,修改文件格式为bat,双击运行即可

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

⭐迅速强制关机:新建记事本,输入“shutdown -s -f -t 0” 并保存,修改文件格式为bat,双击运行即可(若不指定时间,则默认为一分钟后执行,-f表示强制关闭正在运行的应用程序,不前台警告用户,-f也可以不要,加上后能加快关机速度!另外,关机还可以用命令“shutdown -p”实现!)

⭐滑动关机:输入“SlideToShutDown”

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

⭐注销:输入“shutdown -l”

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

⭐重启:输入“shutdown -r”(默认为一分钟,若要立即重启,需修改命令为“shutdown -r -t 0”)

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

⭐休眠:输入“shutdown -h”(需要电脑有该功能才行)

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

⭐锁定计算机:输入“rundll32 user32.dll,LockWorkStation”

★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★*"`'*-.,_,.-*'`"*-.,_☆,.-*`'`*-.,_,.-*`'`*★

  • 注意:记得修改后缀为 .bat 格式哦~
私は一番かわいい女の子です
最后更新于 2024-06-29