本帖最后由 lxsky 于 2012-3-24 14:27 编辑
为什么我的InetGet只支持txt,rar,不支持dat,ini文件,
下面是我做的测试,其实5个文件都是一个文件,只是我把名字改成了不同而已Dim $abc[100]=['test.txt', 'test.rar','test.dat' ,'test.ini','test.exe']
MsgBox(0, "", "http://www.shcrystal.com/" & $abc[0])
For $i= 0 to 4
Local $hDownload = InetGet("http://www.shcrystal.com/" & $abc[$i] , @TempDir & $abc[$i], 1, 1)
;MsgBox(0, "", "http://www.shcrystal.com/" & $abc[$i])
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; 检查完成的下载.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload) ; 关闭句柄以释放资源.
MsgBox(0, "", $abc[$i] &"字节: " & $nBytes)
Next
|