File copy from URL...

Results 1 to 2 of 2

Thread: File copy from URL...

  1. #1
    Join Date
    Dec 1969

    Default File copy from URL...

    I&#039;ve got a webcam that has it&#039;s own web server, and saves a pic every second or so of the current image. I&#039;m trying to run an ASP script from another server that will grab that picture and save it. here&#039;s what i got so far:<BR>&#060;%<BR>Dim fs,f<BR><BR>Set fs=Server.CreateObject("Scripting.FileSystemObject ")<BR><BR>Set f=fs.GetFile("")<BR><BR>Response.Write("File created: " & f.DateCreated)<BR><BR>set f=nothing<BR>set fs=nothing<BR>%&#062;<BR><BR>Microsoft VBScript runtime error &#039;800a0035&#039; <BR><BR>File not found <BR><BR><BR>Am i trying to do the impossible or am I just being stupid?

  2. #2
    Join Date
    Dec 1969

    Default RE: File copy from URL...

    Do you have write permissions enabled on the folder where you&#039;re trying to dump the file?<BR><BR>The GetFile() method just returns the path, it doesn&#039;t actually do the copying.<BR><BR>Look into the filestream Copy() method. Here&#039;s a link that may help:<BR><BR><BR>James.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts