emule自动关机脚本
程序员文章站
2022-05-14 21:00:39
dir="e:\temp" set fso=createobject("scripting.filesystemobject") cmd="shutdown -s -f -...
dir="e:\temp"
set fso=createobject("scripting.filesystemobject")
cmd="shutdown -s -f -t 60"
set ws=wscript.createobject("wscript.shell")
wscript.echo "emule自动关机脚本已运行……"
count=0
do until count<-1
chksize = fso.getfolder(dir).size
if chksize=0 then
ws.run cmd,0
end if
wscript.sleep 120000
loop
set fso=createobject("scripting.filesystemobject")
cmd="shutdown -s -f -t 60"
set ws=wscript.createobject("wscript.shell")
wscript.echo "emule自动关机脚本已运行……"
count=0
do until count<-1
chksize = fso.getfolder(dir).size
if chksize=0 then
ws.run cmd,0
end if
wscript.sleep 120000
loop