I try to rename files with PwerShell Rename-Item cmdlet. Code below
Get-ChildItem -recurse * `
| ?{!$_.PsIsContainer} `
| Rename-Item -NewName {$_.FullName -Replace '.abcd@email.com','.abcd@email_A.com.abcd@email_B.com.abcd@email_E.com'}
But, PowerShel tells me about long path or file name; which is irrelevant to my process. But it is strongly necessary keep new long name.
How to except this error?