ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¤@¤U CreateObject ªº¥Îªk

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
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD