關(guān)閉 InetGet() 返回的句柄.
InetClose ( 句柄 )
句柄 | 由 InetGet() 返回的句柄. |
Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat",
@TempDir &
"\update.dat",
1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ;
檢查完成的下載.
Local $nBytes
= InetGetInfo($hDownload, 0)
InetClose($hDownload) ; 關(guān)閉句柄以釋放資源.
MsgBox(0, "", "讀取字節(jié):
" & $nBytes)
provider with jb51.net (unicode) |