Anyboday can help VBscript ?# DotNet - 窗口里的风景
I*A
1 楼
I got a piece of Vbscript to download files from Internet. It works fine for
small files but failed for large file( greater than 3M?). I guess the
buffer size is not set large enought. How can I set buffer size in Vbscript?
Thanks a lot.
Here is the section of the code:
dim sWebAddress : sWebAddress = Wscript.Arguments.Item(0)
dim oxMLHTTP: set oxMLHTTP=CreateObject("MSXML2.ServerXMLHTTP")
dim oStream: Set oStream = CreateObject("ADODB.Stream")
With oXMLHTTP
.Open "GET", sWebAddress, true
small files but failed for large file( greater than 3M?). I guess the
buffer size is not set large enought. How can I set buffer size in Vbscript?
Thanks a lot.
Here is the section of the code:
dim sWebAddress : sWebAddress = Wscript.Arguments.Item(0)
dim oxMLHTTP: set oxMLHTTP=CreateObject("MSXML2.ServerXMLHTTP")
dim oStream: Set oStream = CreateObject("ADODB.Stream")
With oXMLHTTP
.Open "GET", sWebAddress, true