Waclaw Chrabaszcz
... there is no spoon ...

July 2014 Entries

PowerShell – duplicated files in Windows Media Player library

Holiday! .. But why it's raining. Let's cleanup some duplicated MP3s. Maybe the rain will stop in the meantime. For sure this code is not optimized, and I am not recommending anyone to use it. If you uncomment move actions you can reduce number of duplicated media files in your Windows Media Player library. You can consider it as an example how to access and browse WMP using PowerShell. $wmp = New-object –COM WMPlayer.OCX$playlist = $wmp.mediaCollection.getAll... { if ($playlist.item($i).sourceURL ......