Home All Groups Group Topic Archive Search About

Downloading file from a web server with Command Line

Author
26 Mar 2009 4:31 PM
Travis McGee
I remember Don Box showed something like this, I think.....web browsing from
command line without the browser.

I have vb scripts that are downloading files by Shelling out script to bring
files from an FTP server.

Now, there are some files sitting on a web site (with Directrory Browsing
enabled)
How can I download and save those data files on to hard disk, by either
using Command Line or I can use Browser Object from vbScript

I know, Browser Object does not have any methods for saving files due to
security reasons.

Can anybody find a solution to this outside of .NET coding.  It has to be
VBScript based.

Thanks

Author
26 Mar 2009 7:49 PM
Pegasus [MVP]
Show quote Hide quote
"Travis McGee" <travisGatesMc***@hotmail.com> wrote in message
news:eqQl8CjrJHA.3584@TK2MSFTNGP05.phx.gbl...
>I remember Don Box showed something like this, I think.....web browsing
>from command line without the browser.
>
> I have vb scripts that are downloading files by Shelling out script to
> bring files from an FTP server.
>
> Now, there are some files sitting on a web site (with Directrory Browsing
> enabled)
> How can I download and save those data files on to hard disk, by either
> using Command Line or I can use Browser Object from vbScript
>
> I know, Browser Object does not have any methods for saving files due to
> security reasons.
>
> Can anybody find a solution to this outside of .NET coding.  It has to be
> VBScript based.
>
> Thanks

You could invoke wget.exe (http://www.interlog.com/~tcharron/wgetwin.html)
from within your VB Script, using the Run or Exec method. Here is the
command line for downloading the wget zip package:
wget.exe http://www.interlog.com/~tcharron/wgetwin-1_5_3_1-binary.zip -onul