Re: download and save an image from a website
From: caglaror (caglaror_at_gmail.com)
Date: 02/17/05
- Next message: caglaror: "Re: download and save an image from a website"
- Previous message: Matthias Tacke: "Re: generating empty 1gb files"
- In reply to: Mirsten Choiple: "download and save an image from a website"
- Next in thread: caglaror: "Re: download and save an image from a website"
- Messages sorted by: [ date ] [ thread ]
Date: 17 Feb 2005 13:36:42 -0800
start=InputBox("Please give the starting number")
finish=InputBox("Please give the last number")
FOR oder_no=start TO finish
On Error Resume Next
piece= CStr(order_no) & ".wma"
cURL = "http://www.anadolurock.com/arsiv/wma/" & piece
Dim strDIR
strDIR = WScript.ScriptFullName
strDIR = Left(strDIR,InStrRev(strDIR,"\"))
Dim strFIL
strFIL = Mid(cURL,InStrRev(cURL,"/")+1)
Dim objADO
Set objADO = CreateObject("ADODB.Stream")
Dim objXML
Set objXML = CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET", cURL, False
objXML.Send
If Err.Number = 0 And objXML.Status = 200 Then
objADO.Type = 1
objADO.Open
objADO.Write objXML.ResponseBody
objADO.SaveToFile strDIR & strFIL,2
booMSG = True
End If
Set objADO = Nothing
Set objXML = Nothing
NEXT
- Next message: caglaror: "Re: download and save an image from a website"
- Previous message: Matthias Tacke: "Re: generating empty 1gb files"
- In reply to: Mirsten Choiple: "download and save an image from a website"
- Next in thread: caglaror: "Re: download and save an image from a website"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|