emule自動(dòng)關(guān)機(jī)腳本

字號(hào):


    emule自動(dòng)關(guān)機(jī)腳本,它的功能就是將軟件下載完后,就是檢測下載緩沖區(qū)的文件夾是否為0,是就是所有的文件已下載完畢,然后執(zhí)行的關(guān)機(jī)操作。
    dir="E:\Temp"
    Set fso=CreateObject("Scripting.FileSystemObject")
    cmd="shutdown -s -f -t 60"
    Set ws=WScript.CreateObject("WScript.Shell")
    Wscript.Echo "emule自動(dòng)關(guān)機(jī)腳本已運(yùn)行……"
    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