win2000关机命令的批处理bat
发布时间:2016-12-28 来源:查字典编辑
摘要:复制代码代码如下:@echooffsetlocalcd/d%temp%echoSetcolOperatingSystems=GetObjec...
复制代码 代码如下:
@echooff
setlocal
cd/d%temp%
echoSetcolOperatingSystems=GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select*fromWin32_OperatingSystem")>shutdown.vbs
echoForEachobjOperatingSystemincolOperatingSystems>>shutdown.vbs
echoObjOperatingSystem.Win32Shutdown(12)>>shutdown.vbs
echoNext>>shutdown.vbs
cscriptshutdown.vbs
delshutdown.vbs
::;ValueMeaning
::;0LogOff
::;0+4ForcedLogOff
::;1Shutdown
::;1+4ForcedShutdown
::;2Reboot
::;2+4ForcedReboot
::;8PowerOff
::8+4ForcedPowerOff
pause
dos下重启
复制代码 代码如下:
ECHO G=FFFF:0000 | DEBUG