Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - How to download binaries via HTTP

Reply
 
Old 04-08-2007   #1 (permalink)
Andreas Guther


 
 

How to download binaries via HTTP

I am looking for a PowerShell script that shows how to download binaries like
images or zip files from the internet via HTTP protocol.

Can anyone point me to an example?

Thanks in advance,

Andreas

My System SpecsSystem Spec
Old 04-08-2007   #2 (permalink)
Brandon Shell


 
 

Re: How to download binaries via HTTP

I ran a search on my site: http://bsonposh.com/modules/wordpress/?page_id=13

The one that jump out at me is:
http://www.leeholmes.com/blog/ADownl...agerInMSH.aspx

Uses:
http://msdn2.microsoft.com/en-us/lib...webclient.aspx

"Andreas Guther" <Andreas Guther@discussions.microsoft.com> wrote in message
news:CB2F7DFE-88F3-464F-AA8D-654D071C109D@microsoft.com...
>I am looking for a PowerShell script that shows how to download binaries
>like
> images or zip files from the internet via HTTP protocol.
>
> Can anyone point me to an example?
>
> Thanks in advance,
>
> Andreas


My System SpecsSystem Spec
Old 04-08-2007   #3 (permalink)
Andreas Guther


 
 

Re: How to download binaries via HTTP

The provided link was very helpful Thank you.

To summarize the usage, all you need to do is the following:

## Ensure the System.Net DLLs are loaded
[void] [Reflection.Assembly]::LoadWithPartialName("System.Net")

$url = "http://www.google.com/images/logo_sm.gif"
$filename = Join-Path "$(get-location)" "google-logo.gif"

write-host " Downloading: $url to $filename"

$webClient = new-object System.Net.WebClient
$webClient.DownloadFile($url, $filename)

Andreas


"Brandon Shell" wrote:

> I ran a search on my site: http://bsonposh.com/modules/wordpress/?page_id=13
>
> The one that jump out at me is:
> http://www.leeholmes.com/blog/ADownl...agerInMSH.aspx
>
> Uses:
> http://msdn2.microsoft.com/en-us/lib...webclient.aspx
>
> "Andreas Guther" <Andreas Guther@discussions.microsoft.com> wrote in message
> news:CB2F7DFE-88F3-464F-AA8D-654D071C109D@microsoft.com...
> >I am looking for a PowerShell script that shows how to download binaries
> >like
> > images or zip files from the internet via HTTP protocol.
> >
> > Can anyone point me to an example?
> >
> > Thanks in advance,
> >
> > Andreas

>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
SP1 has killed http download speeds General Discussion
Download installer from http://get.live.com in different languages Live Messenger
Slow HTTP download in Vista SP1/Switching back to XP-I hope not Vista General
Can't post binaries to newsgroups via Windows Mail Vista mail
Access ALT.BINARIES Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46