Post Reply 
Artwork search request - album.jpg
17-01-2022, 19:11 (This post was last modified: 17-01-2022 19:12 by edj.)
Post: #7
RE: Artwork search request - album.jpg
Unfortunately not. Running the first command i received this error:

Code:
PS C:\Users\xxx> Get-ChildItem -Path "D:\mus" -Recurse -Filter "album.jpg" | Rename-Item -NewName { $_.Name -replace "album.jpg","folder.jpg" }
Rename-Item : Cannot create a file when that file already exists.
At line:1 char:61
+ ... lbum.jpg" | Rename-Item -NewName { $_.Name -replace "album.jpg","fold ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (D:\mus\1-9\13\1...s EP]\album.jpg:String) [Rename-Item], IOException
    + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand

The folder it's looking in above has four mp3s and a file called album.jpg.

I have absolutely no idea what could be going wrong!!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Artwork search request - album.jpg - edj - 17-01-2022 19:11

Forum Jump:


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