dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "shutdown -f -s -t 00",0 ,true
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "shutdown -f -s -t 00",0 ,true
本文介绍了一种通过VBScript中的WScript.Shell对象来执行Windows系统的关机命令的方法。具体实现了无提示地立即关闭计算机的功能。

被折叠的 条评论
为什么被折叠?