Skip to content

Instantly share code, notes, and snippets.

@ctolkien
Created November 3, 2012 00:27
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 ctolkien/4005225 to your computer and use it in GitHub Desktop.
Save ctolkien/4005225 to your computer and use it in GitHub Desktop.
Download all the Build 2012 videos...
(irm http://channel9.msdn.com/Events/Build/2012/RSS/wmvhigh) | where { $_.title -NotLike "*(Repeat)*"} | foreach {
$path = "E:\Build2012\" + ($_.title -replace ":", "") + ".wmv"
if (Test-Path ($path)) {
Write-Output "Skipping" + $_.title
}
else {
Write-Output "Downloading" + $_.title
(New-Object System.Net.WebClient).DownloadFile($_.enclosure.url, $path)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment