+ 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 54 Times in 46 Posts
    Rep Power
    35

    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. IDG Tech News
  3. #2
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,727
    Blog Entries
    1
    Thank Post
    107
    Thanked 542 Times in 476 Posts
    Rep Power
    134

    Re: Script to get all file on a url


  4. #3


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,130
    Thank Post
    786
    Thanked 745 Times in 581 Posts
    Rep Power
    176

    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

  5. #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 54 Times in 46 Posts
    Rep Power
    35

    Re: Script to get all file on a url

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

  6. #5
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,727
    Blog Entries
    1
    Thank Post
    107
    Thanked 542 Times in 476 Posts
    Rep Power
    134

    Re: Script to get all file on a url

    Set the proxy for wget in the wgetrc configuration file.

  7. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    7,697
    Thank Post
    1,565
    Thanked 738 Times in 689 Posts
    Rep Power
    254

    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
  •