Skip to content

Instantly share code, notes, and snippets.

@shanselman
Created April 4, 2013 19:26
(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