VBS实现定时关机

来源:互联网 发布:bim软件有哪些 编辑:程序博客网 时间:2024/06/11 08:32
dim x
set w=createobject("wscript.shell")
x=inputbox("请输入倒计时关机时间如60表示一分钟后关机"&"VBS迷你关机小程序")
if vbok then
w.run "shutdown -s -t " + x
if x="" then
w.run "shutdown -a "
end if
end if
原创粉丝点击