win2000关机命令的批处理bat
程序员文章站
2022-04-29 17:18:07
复制代码 代码如下:@echo off setlocal cd/d %temp% ...
复制代码 代码如下:
@echo off
setlocal
cd/d %temp%
echo set coloperatingsystems = getobject("winmgmts:{(shutdown)}").execquery("select * from win32_operatingsystem") >shutdown.vbs
echo for each objoperatingsystem in coloperatingsystems >>shutdown.vbs
echo objoperatingsystem.win32shutdown(12) >>shutdown.vbs
echo next >>shutdown.vbs
cscript shutdown.vbs
del shutdown.vbs
::;value meaning
::;0 log off
::;0 + 4 forced log off
::;1 shutdown
::;1 + 4 forced shutdown
::;2 reboot
::;2 + 4 forced reboot
::;8 power off
::8 + 4 forced power off
pause
dos下重启
复制代码 代码如下:
echo g=ffff:0000 | debug
上一篇: 苏宁大造818发烧节 玩得是哪招?