Announcement

Collapse
No announcement yet.

Help With remote filecopy in wscript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help With remote filecopy in wscript

    Hi iam not such a good coder in wscript and i wonder if some one can help me with a wscript that copies a remote picture to a local disk/filename

    The reason is... I rum a slideshow off inetpages and i use remote pics to generate my own. But this is bandwith costly.. If i can schedule this It would end the prob...

    Pleezzeee someone help me!!! Its a real big prob for me.

    Greetz P.S.Y.C.H.O.T.I.C.

    So

    COPY www.xxxxx.com/xxxxx/xxx.jpg .gif .bmp to d:\local pics\

    OR SOMETHING LIKE THAT....

    #2
    I don't think you can execute a file copy from a web address. Grab the movies.zip from this thread. It has a program in it (FileFromWeb) that I think will do what you want.


    Paul

    Comment


      #3
      If you open the web page or use the web URL for the picture file in your browser, it'll be copied to your local browser's cache area, where it can then be copied to some other place for safe keeping. That's how browsers work. Just script your browser to open all the images you want to get.

      - huggy
      |
      | - Gordon

      "I'm a Man, but I can change, if I have to, I guess." - Man's Prayer, Possum Lodge, The Red Green Show
      HiddenGemStudio.com - MaineMusicians.org - CunninghamCreativeMaine.website

      Comment


        #4
        FileFromWeb will do exactly what you want. You run it from the command line or homeseer script with a syntax something like:
        FileFromWeb "X1","http:...." D:\xyz "xyz.jpg abc.gif"
        where X1 is any homeseer device, http.. is the URL, D:\xyz is the destination directory and xyz.jpg abc.gif ... are filename you want to download.

        If you do not include the "xyz ... " list of files it will download all <img src tags that are referenced by the web page at the URL. This will typically be a set of .gif, jpg, jpeg files.

        Comment


          #5
          Thanks for all the reply's i got i think i can continue the infowindowproject.. Your answers saved me a lot off inet seach time.... thank dudes......

          P.S.Y.C.H.O.T.I.C.

          Comment

          Working...
          X