vbe关机代码.高手来帮我看看..
onerrorresumenextdimWSHshellAsetWSHshellA=wscript.createobject("wscript.shell")WSHshe...
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -c ""系统30秒后自动关机"" ",0 ,true
dim a
do while(a <> "909")
a = inputbox ("请输入909:")
msgbox chr(13) + chr(13) + chr(13) + a,0,"OK"
loop
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
时间到后不是关机.是重启.高手帮我看看那里 有问题.. 展开
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -c ""系统30秒后自动关机"" ",0 ,true
dim a
do while(a <> "909")
a = inputbox ("请输入909:")
msgbox chr(13) + chr(13) + chr(13) + a,0,"OK"
loop
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
时间到后不是关机.是重启.高手帮我看看那里 有问题.. 展开
展开全部
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -s -t 30 -c ""系统30秒后自动关机"" ",0 ,true
dim a
do while(a <> "909")
a = inputbox ("请输入909:")
msgbox chr(13) + chr(13) + chr(13) + a,0,"OK"
loop
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
改为这样
这个通过调用cmd执行 shutdown命令
shutdown -a 取消定时关机
shutdown -s -t 时间单位为秒 多久后关机
shutdown -r -t 时间单位为秒 多久后重启
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -s -t 30 -c ""系统30秒后自动关机"" ",0 ,true
dim a
do while(a <> "909")
a = inputbox ("请输入909:")
msgbox chr(13) + chr(13) + chr(13) + a,0,"OK"
loop
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
改为这样
这个通过调用cmd执行 shutdown命令
shutdown -a 取消定时关机
shutdown -s -t 时间单位为秒 多久后关机
shutdown -r -t 时间单位为秒 多久后重启
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询