Hi, I am very new to PowerShell and am currently only using it to rename bulk files which I am having success with.
However, I have hit a hurdle when I try and rename a string that uses parenthesis. I’m speculating that each parenthesis may need to have a special character before and after it; however, I am not sure which special character it may be. Does anyone have any idea what it could be?
For example,
Dir | Rename-Item –NewName { $.name -replace “Old (Name)”,“New Filename” }
or
Dir | Rename-Item –NewName { $.name -replace “(Old Name)”,“New Filename” }