Monday, October 22, 2007

PowerShell Radio

 

If you've never heard of PowerShell podcast by http://powerscripting.net now is the time!
First founded by Jonathan Walz and now co-hosted with Hal Rottenberg, PowerShell podcast provide you with a comprehensive report on PowerShell news.

Each Podcast/Episode can be downloaded as an MP3 file for offline usage. The podcast is usually divided into sections, with cool distortion guitar transitions , like News, Cmdlet of the week, Resources, Tips, One-liners, Gotchas , challenges and more.

Thumbs UP guys, you're doing a great job!

So, fire up your browser, tune in and Get-Podcast -PowerScripting | Get-BodyPart -Ears!

 

Finally, here's a little (rough) piece of code to download the podcasts using PowerShell:

 

function Get-PowerScriptingPodcast{
    param($dlPath)
    $url = "http://powerscripting.net/feed";
    $wc= new-object net.webclient;
    $xml = [xml]$wc.DownloadString($url);

    $xml.rss.channel.item | foreach {
        $fname = [system.IO.path]::GetFileName($_.enclosure.url);
        $podcast = read-host "Download $fname [Yes] default, [N] No"
        if($podcast -ne "n" -and $fname -ne ""){
            $wc.DownloadFile($_.enclosure.url,$fname);
        }   
    }
}

1 comment:

halr9000 said...

Thanks, Shay! [insert witty comment here]