Post Reply 
Artwork search request - album.jpg
18-01-2022, 11:07 (This post was last modified: 18-01-2022 12:46 by simoncn.)
Post: #11
RE: Artwork search request - album.jpg
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.
Find all posts by this user
Quote this message in a reply
18-01-2022, 13:35
Post: #12
RE: Artwork search request - album.jpg
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') }
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)