To download file from URL I used following piece of code:
$fileURL = "http://server/file.zip" $fileName = "C:\Downloads\file.zip" $webclient = New-Object System.Net.WebClient $webclient.DownloadFile($fileURL,$fileName)
by skufel | Jul 2, 2013 | Automation, Scripting, Windows | 0 comments
To download file from URL I used following piece of code:
$fileURL = "http://server/file.zip" $fileName = "C:\Downloads\file.zip" $webclient = New-Object System.Net.WebClient $webclient.DownloadFile($fileURL,$fileName)