Skip to content

Instantly share code, notes, and snippets.

@j-v
Created September 17, 2012 00:29
Show Gist options
  • Save j-v/3734973 to your computer and use it in GitHub Desktop.
Save j-v/3734973 to your computer and use it in GitHub Desktop.
Script to download a file from PowerShell
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