- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28

|
Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
WinHttpReq.Open "GET", myURL, False '¹w³Æ¥ÎXMLHTTP library ³s±µurl (¥Îget¤è¦¡,¨ä¥Lªº¦³POST)
WinHttpReq.Send '³s±µurl
'
myURL = WinHttpReq.ResponseBody '®³¥X¦^¶Ç¸ê®Æ(µ¹¤U¤@¬dSTATUS¥Î)
If WinHttpReq.Status = 200 Then ; '¦pªGÂI¶Ç¬O"¦³¸ê®Æ" 200, ¦æ¤U¤@¨B. ±`¨£ªº§ä¤£¨ì¦³404 (FILE NOT FOUND)
Set oStream = CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1
oStream.Write WinHttpReq.ResponseBody
oStream.SaveToFile (file_dir)'§â¦^¶Çªº¸ê®Æ¸gADODB.STREAM ±µ»é¨ìÀɮצì¸m
oStream.Close
End If |
|