win2000关机命令的批处理bat
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

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新DOS/BAT学习
热门DOS/BAT学习
脚本专栏子分类