I am very new to PowerShell and came across a PowerShell script but cannot make it work or even understand how it's suppose to work. The creator said that they passed the playlist file and the folder to the script as parameters and it extracted the file/path information from the playlist file for every song and copied the music files to the folder. Well after doing alot of research I find I keep getting information that doesn;t quite fit this situation and I need help understanding how PowerShell handles the data in a .wpl file since it doesn't seem to be a true xml file. I have startied looking into the XmlDocument object but I am getting lost in all the examples that don;t quite explain where the commands do. I could really use a good pointer on where I should focus my research. Like what commands I should be looking at and where I can find a good reference on syntax of the different cmdlets. I am including an example of the playlist file I am trying to extract from in case that might help someone understand what I am trying to accomplish. https://gist.github.com/zipster1967/8d30b85cbc42e60d66d24d7e10b3138a"
I discovered that media player is able to create m3u playlist files which do not have the weird replacements that exist in wpl files (['] being replaced by [&apos] so I now just need to extract all the lines that are not blank, and do not start with the pound sign # If anyone has an idea on how to do that please let me know.