Re: Copying file down from web to a local directory
From: Steven Burn (pvt_at_noyb.com)
Date: 09/29/04
- Next message: McKirahan: "Re: Asynchronous call in Vbscript"
- Previous message: Sean: "Re: CreateObject permissions"
- In reply to: Jeff Knecht: "Copying file down from web to a local directory"
- Next in thread: Jeff Knecht: "Re: Copying file down from web to a local directory"
- Reply: Jeff Knecht: "Re: Copying file down from web to a local directory"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 18:06:48 +0100
Forget trying to use IE and see here;
http://aspfaq.com/show.asp?id=2173
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Jeff Knecht" <heffizzle@msn.com> wrote in message
news:0cde01c4a644$ab14cab0$a401280a@phx.gbl...
> Okay, n00b question here. Sorry if it isn't the most
> intelligent question out there. :-P
>
> I am trying to copy down a jpg image from the Mt. St.
> Helens webcam every 5 minutes to a local directory.
> Consider the following code:
>
> x=0
>
> Do While x <> 1
> set objIE = CreateObject
> ("InternetExplorer.Application")
> objIE.visible=false
> objIE.navigate2
> ("http://www.fs.fed.us/gpnf/volcanocams/msh/images/mshvolc
> anocam.jpg")
> Do While objIE.busy=True
> wscript.sleep 60
> Loop
> call objIE.document.execwb
> ("saveas",2,"C:\volcano\mshvolcanocam.jpg")
> objIE.Quit
> Wscript.Sleep 300000
> Loop
>
> This code errors out with:
>
> C:\Documents and Settings\jeffok\Desktop\helens.vbs(10,
> 4) Microsoft VBScript runtime error: Object doesn't
> support this property or method: 'objIE.document.execwb'
>
> To me it looks like IE doesn't have an object
> named 'document', but I looked it up on MSDN and actually
> found it. My guess is, i'm misunderstanding how this
> object is used and using it in the wrong context. Of
> course, i'm not sure.
>
> I would appreciate somebody setting me straight in my
> ways.
>
> Thanks!
>
> -Jeff
- Next message: McKirahan: "Re: Asynchronous call in Vbscript"
- Previous message: Sean: "Re: CreateObject permissions"
- In reply to: Jeff Knecht: "Copying file down from web to a local directory"
- Next in thread: Jeff Knecht: "Re: Copying file down from web to a local directory"
- Reply: Jeff Knecht: "Re: Copying file down from web to a local directory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|