Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shanselman
Created April 4, 2013 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanselman/5313362 to your computer and use it in GitHub Desktop.
Save shanselman/5313362 to your computer and use it in GitHub Desktop.
(1..366) | foreach {
$url = New-Object System.Uri("http://hanselminutes.com/images/shows/" + $_ + ".jpg")
$file = $url.Segments[-1]
$file
(New-Object System.Net.WebClient).DownloadFile($url, "c:\hm\" + $file)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment