I have a group of pictures (.jpg) all in the same folder that are all named something different. I am trying to rename all of them to the same name, numbered consecutively like it would in file explorer. EX. Test.jpg, Test(1).jpg Test(2) and so on.
This is what I have been trying but it tells me 'cannot create a file when that file already exists' and only changes the name of one file.
Get-ChildItem | Rename-Item -newname { 'Test.jpg' }
I am hoping some could show me a way to get it to number them like above.
Thanks For All Help In Advance.
No comments:
Post a Comment