PC Review


Reply
Thread Tools Rate Thread

How to copy web image daily

 
 
=?Utf-8?B?RXZl?=
Guest
Posts: n/a
 
      19th Sep 2007
Anyone knows how to copy a web image (weather image), daily from internet
into a local folder??

I tried this:
C:\>xcopy
"http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg" c:\
0 files copied

Thanks in advance!!
 
Reply With Quote
 
 
 
 
LJB
Guest
Posts: n/a
 
      19th Sep 2007

"Eve" <(E-Mail Removed)> wrote in message
news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
> Anyone knows how to copy a web image (weather image), daily from internet
> into a local folder??
>
> I tried this:
> C:\>xcopy
> "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg"
> c:\
> 0 files copied
>
> Thanks in advance!!


You need to use VBscript or a program to do this. Replace "c:\" with the
path indicating where you want your images saved.

Source Michael Harris & Alex K. Angelopoulos
http://www.google.com/groups?selm=0e...280a%40phx.gbl

-------------- save lines below in a file with .vbs
extension -----------------------

ImgName = "spain_outlook_day1_277_sp.jpg"

SaveName = "c:\" & ImgName
Url = "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/" &
_
ImgName

DownBinFile SaveName, Url

Wscript.Echo "Download of", SaveName, " is complete."

Sub DownBinFile(FilePath, sURL)
const adTypeBinary = 1
const adModeReadWrite = 3
const adSaveCreateOverwrite = 2
' Create an xmlhttp object:
set oXML = CreateObject("Microsoft.XMLHTTP")
oXML.open "GET", sURL, False
oXML.send

With CreateObject("ADODB.Stream")
.type = adTypeBinary
.mode = adModeReadWrite
.open
On Error Resume Next
Do
Wscript.Sleep 250
.write oXML.responseBody
Loop Until Err = 0
.savetofile FilePath, adSaveCreateOverwrite
End With
End Sub


 
Reply With Quote
 
Yves Alarie
Guest
Posts: n/a
 
      19th Sep 2007
Right click on the image.
A menu will open.
Click on Save Picture As.
A window will open for you to select the folder you want to save the picture
in.
Before you do this, make a new folder, name it Weather and then save your
daily image in this folder.


"Eve" <(E-Mail Removed)> wrote in message
news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
> Anyone knows how to copy a web image (weather image), daily from internet
> into a local folder??
>
> I tried this:
> C:\>xcopy
> "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg"
> c:\
> 0 files copied
>
> Thanks in advance!!



 
Reply With Quote
 
=?Utf-8?B?RXZl?=
Guest
Posts: n/a
 
      20th Sep 2007
Thank you LJB, this script works fine!!

"LJB" wrote:

>
> "Eve" <(E-Mail Removed)> wrote in message
> news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
> > Anyone knows how to copy a web image (weather image), daily from internet
> > into a local folder??
> >
> > I tried this:
> > C:\>xcopy
> > "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg"
> > c:\
> > 0 files copied
> >
> > Thanks in advance!!

>
> You need to use VBscript or a program to do this. Replace "c:\" with the
> path indicating where you want your images saved.
>
> Source Michael Harris & Alex K. Angelopoulos
> http://www.google.com/groups?selm=0e...280a%40phx.gbl
>
> -------------- save lines below in a file with .vbs
> extension -----------------------
>
> ImgName = "spain_outlook_day1_277_sp.jpg"
>
> SaveName = "c:\" & ImgName
> Url = "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/" &
> _
> ImgName
>
> DownBinFile SaveName, Url
>
> Wscript.Echo "Download of", SaveName, " is complete."
>
> Sub DownBinFile(FilePath, sURL)
> const adTypeBinary = 1
> const adModeReadWrite = 3
> const adSaveCreateOverwrite = 2
> ' Create an xmlhttp object:
> set oXML = CreateObject("Microsoft.XMLHTTP")
> oXML.open "GET", sURL, False
> oXML.send
>
> With CreateObject("ADODB.Stream")
> .type = adTypeBinary
> .mode = adModeReadWrite
> .open
> On Error Resume Next
> Do
> Wscript.Sleep 250
> .write oXML.responseBody
> Loop Until Err = 0
> .savetofile FilePath, adSaveCreateOverwrite
> End With
> End Sub
>
>
>

 
Reply With Quote
 
LJB
Guest
Posts: n/a
 
      20th Sep 2007
With a little additional scripting work you might be able to
programmatically construct the image name. Then you could schedule this
scrip on your PC to run daily unattended.

LJB

"Eve" <(E-Mail Removed)> wrote in message
news:E0D1B838-0223-411C-8E76-(E-Mail Removed)...
> Thank you LJB, this script works fine!!
>
> "LJB" wrote:
>
>>
>> "Eve" <(E-Mail Removed)> wrote in message
>> news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
>> > Anyone knows how to copy a web image (weather image), daily from
>> > internet
>> > into a local folder??
>> >
>> > I tried this:
>> > C:\>xcopy
>> > "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg"
>> > c:\
>> > 0 files copied
>> >
>> > Thanks in advance!!

>>
>> You need to use VBscript or a program to do this. Replace "c:\" with the
>> path indicating where you want your images saved.
>>
>> Source Michael Harris & Alex K. Angelopoulos
>> http://www.google.com/groups?selm=0e...280a%40phx.gbl
>>
>> -------------- save lines below in a file with .vbs
>> extension -----------------------
>>
>> ImgName = "spain_outlook_day1_277_sp.jpg"
>>
>> SaveName = "c:\" & ImgName
>> Url = "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/"
>> &
>> _
>> ImgName
>>
>> DownBinFile SaveName, Url
>>
>> Wscript.Echo "Download of", SaveName, " is complete."
>>
>> Sub DownBinFile(FilePath, sURL)
>> const adTypeBinary = 1
>> const adModeReadWrite = 3
>> const adSaveCreateOverwrite = 2
>> ' Create an xmlhttp object:
>> set oXML = CreateObject("Microsoft.XMLHTTP")
>> oXML.open "GET", sURL, False
>> oXML.send
>>
>> With CreateObject("ADODB.Stream")
>> .type = adTypeBinary
>> .mode = adModeReadWrite
>> .open
>> On Error Resume Next
>> Do
>> Wscript.Sleep 250
>> .write oXML.responseBody
>> Loop Until Err = 0
>> .savetofile FilePath, adSaveCreateOverwrite
>> End With
>> End Sub
>>
>>
>>



 
Reply With Quote
 
LJB
Guest
Posts: n/a
 
      20th Sep 2007

"Eve" <(E-Mail Removed)> wrote in message
news:E0D1B838-0223-411C-8E76-(E-Mail Removed)...
> Thank you LJB, this script works fine!!
>
> "LJB" wrote:
>
>>
>> "Eve" <(E-Mail Removed)> wrote in message
>> news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
>> > Anyone knows how to copy a web image (weather image), daily from
>> > internet
>> > into a local folder??
>> >
>> > I tried this:
>> > C:\>xcopy
>> > "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/spain_outlook_day1_277_sp.jpg"
>> > c:\
>> > 0 files copied
>> >
>> > Thanks in advance!!

>>
>> You need to use VBscript or a program to do this. Replace "c:\" with the
>> path indicating where you want your images saved.
>>
>> Source Michael Harris & Alex K. Angelopoulos
>> http://www.google.com/groups?selm=0e...280a%40phx.gbl
>>
>> -------------- save lines below in a file with .vbs
>> extension -----------------------
>>
>> ImgName = "spain_outlook_day1_277_sp.jpg"
>>
>> SaveName = "c:\" & ImgName
>> Url = "http://image.espanol.weather.com/web/maps/es_ES/weather/forecast/"
>> &
>> _
>> ImgName
>>
>> DownBinFile SaveName, Url
>>
>> Wscript.Echo "Download of", SaveName, " is complete."
>>
>> Sub DownBinFile(FilePath, sURL)
>> const adTypeBinary = 1
>> const adModeReadWrite = 3
>> const adSaveCreateOverwrite = 2
>> ' Create an xmlhttp object:
>> set oXML = CreateObject("Microsoft.XMLHTTP")
>> oXML.open "GET", sURL, False
>> oXML.send
>>
>> With CreateObject("ADODB.Stream")
>> .type = adTypeBinary
>> .mode = adModeReadWrite
>> .open
>> On Error Resume Next
>> Do
>> Wscript.Sleep 250
>> .write oXML.responseBody
>> Loop Until Err = 0
>> .savetofile FilePath, adSaveCreateOverwrite
>> End With
>> End Sub
>>
>>
>>


Here is something that's free, simple and doesn't even require any
scripting.
description: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8143
The download link is broken but you can still get it from
http://www.geocities.com/zoomkat/files/dhttp.zip


 
Reply With Quote
 
Ray
Guest
Posts: n/a
 
      27th Sep 2007
Click Control - Print Scrn - Open clipboard - File - Open in any viewer
program - Make any alterations -Save As


--
Ray
__________


"Eve" <(E-Mail Removed)> wrote in message
news:124E4F2B-F14B-47CB-8849-(E-Mail Removed)...
> Anyone knows how to copy a web image (weather image), daily from internet
> into a local folder??



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy cells daily and automatically RJJ Microsoft Excel Worksheet Functions 4 10th May 2009 01:01 PM
Daily send copy of Excel Spreadsheet Via Email =?Utf-8?B?U2Vhbg==?= Microsoft Excel Misc 1 19th Mar 2007 03:36 PM
Copy number that changes daily with macro =?Utf-8?B?Um95Qw==?= Microsoft Excel Programming 1 23rd Apr 2005 11:54 PM
Macro to copy daily text file =?Utf-8?B?Q2hlcnls?= Microsoft Excel Programming 1 27th May 2004 05:46 AM
Change desktop image daily Art Windows XP Help 2 11th Apr 2004 04:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.