Guest User

Untitled

a guest
Jun 12th, 2020
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $XMLFiles | % { Process {
  2. [xml]$xml = Get-Content -LiteralPath $_.FullName;
  3. $LocalTitle = $Xml.DocumentElement.LocalTitle;
  4. $MP3Path = $Xml.DocumentElement.PlaylistItems.PlaylistItem.Path;
  5. New-Item -Path "$OutputPath\$LocalTitle" -ItemType Directory -ErrorAction SilentlyContinue;
  6. $MP3Path | % { Copy-Item -LiteralPath "\$($_.Replace("volume1", "ds418").Replace("/", "\"))" "$OutputPath\$LocalTitle"; };
  7. }};
Add Comment
Please, Sign In to add comment