Created
September 17, 2012 00:29
-
-
Save j-v/3734973 to your computer and use it in GitHub Desktop.
Script to download a file from PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($url, $filename) | |
$webclient = New-Object System.Net.WebClient | |
$filepath = "$pwd\$filename" | |
$webclient.DownloadFile($url,$filepath) | |
echo "Saved $filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment