+ Post New Thread
Results 1 to 6 of 6
Scripts Thread, Script to get all file on a url in Coding and Web Development; I'm trying to find a way to automatically download all the files from the AV update site so that they ...
  1. #1
    Midget's Avatar
    Join Date
    Oct 2006
    Location
    In a Server Room cutting through a forest of Cat5e
    Posts
    1,298
    Thank Post
    5
    Thanked 59 Times in 49 Posts
    Rep Power
    40

    Script to get all file on a url

    I'm trying to find a way to automatically download all the files from the AV update site so that they are hosted onsite.

    ie i want a script to go to this website and download all files and stop them in a directory.

    http://speedownload.nai.com/products/commonupdater/

    anyone have any ideas to save me having to manually do it?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,813
    Thank Post
    110
    Thanked 586 Times in 507 Posts
    Blog Entries
    1
    Rep Power
    225

    Re: Script to get all file on a url


  3. #3


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,485
    Thank Post
    867
    Thanked 854 Times in 675 Posts
    Rep Power
    197

    Re: Script to get all file on a url

    You could also use wget to pull them thru your webcache and then delete them, so you don't end up with loads of ancient guff on disk. The option's in the manpage somewhere

  4. #4
    Midget's Avatar
    Join Date
    Oct 2006
    Location
    In a Server Room cutting through a forest of Cat5e
    Posts
    1,298
    Thank Post
    5
    Thanked 59 Times in 49 Posts
    Rep Power
    40

    Re: Script to get all file on a url

    I tried wget previously, but it fails, might be the proxy playing up though.

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,813
    Thank Post
    110
    Thanked 586 Times in 507 Posts
    Blog Entries
    1
    Rep Power
    225

    Re: Script to get all file on a url

    Set the proxy for wget in the wgetrc configuration file.

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,897
    Thank Post
    3,421
    Thanked 1,081 Times in 997 Posts
    Rep Power
    369

    Re: Script to get all file on a url

    you can use the execwb command from the internetexplorer.application object:


    dim ie
    set ie.createobject("internetexplorer.application")
    ie.visible=false
    ie.navigateto("<url here>")
    do while ie.busy=true
    wscript.sleep 60
    loop
    ie.document.execwb("saveas",2,<destinationpathhere >)
    ie.quit

    obviously you would have to somehow enumerate all the files that exist on that url some how....

SHARE:
+ Post New Thread

Similar Threads

  1. File hosting upload / download script
    By ajbritton in forum Web Development
    Replies: 4
    Last Post: 21st January 2008, 09:56 PM
  2. Delete certain file format using a script
    By FN-GM in forum Scripts
    Replies: 3
    Last Post: 27th December 2007, 12:17 AM
  3. AutoIt Script Help - Get Last Changed File
    By russdev in forum Scripts
    Replies: 8
    Last Post: 8th August 2007, 05:34 AM
  4. PHP flat file database script
    By ajbritton in forum Web Development
    Replies: 3
    Last Post: 26th October 2006, 08:51 PM
  5. Replies: 4
    Last Post: 23rd March 2006, 06:27 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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