楼上的,不应该是判断sj>1吧,单位是秒,应该是判断是否大于3600呀!而且干嘛要定义fso呢?又不要用到它。
我写的代码:
dim DelayTime
set ShutdownRunner=wscript.createobject("wscript.shell")
DelayTime=inputbox("请问多少秒后关机?")
if DelayTime>3600 then ShutdownRunner.run "shutdown -s -t "+DelayTime,vbhide
我来帮你,如下:
rem*********************************
dim sj,fso
set ws=createobject("wscript.shell")
sj=inputbox("请输入关机时间")
if sj>1 then
ws.run ("shutdown -s -t ")&sj
else
end if
rem*********************************
你要多给我点分啊~~~~~~~~~