InetGet 如何判断 下载超时 下载文件不完整 或下载中断?
请问。。。@error 如何判断 帮助中有例子,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 $aData = InetGetInfo($hDownload);获取所有信息.
InetClose($hDownload);关闭句柄, 释放资源.
MsgBox(0, "", "Bytes read: " & $aData & @CRLF & _
"Size: " & $aData & @CRLF & _
"Complete?: " & $aData & @CRLF & _
"Successful?: " & $aData & @CRLF & _
"@error: " & $aData & @CRLF & _
"@extended: " & $aData & @CRLF)
页:
[1]