Created
November 3, 2012 00:27
-
-
Save ctolkien/4005225 to your computer and use it in GitHub Desktop.
Download all the Build 2012 videos...
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
(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