MinimServer Forum
Artwork search request - album.jpg - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Artwork search request - album.jpg (/showthread.php?tid=6484)

Pages: 1 2


RE: Artwork search request - album.jpg - simoncn - 18-01-2022 11:07

The problem seems to be caused by the [ ] in the folder name. I tried using the same folder names as you and I got an error message (not exactly the same as your error message). I then removed the [ ] and the command worked.


RE: Artwork search request - album.jpg - simoncn - 18-01-2022 13:35

The following is working for me in my test setup (with the [ ] characters):

Code:
Get-ChildItem -Path "D:\mus" -Recurse -Filter "album.jpg" | ForEach-Object { Move-Item -LiteralPath $_.FullName $_.FullName.Replace('album.jpg','folder.jpg') }
Get-ChildItem -Path "D:\mus" -Recurse -Filter "album.png" | ForEach-Object { Move-Item -LiteralPath $_.FullName $_.FullName.Replace('album.png','folder.png') }