Hello Friends,
Some times you may get a situation to rename the multiples files or to remove the specific word or character from the multiples files name. The traditional approach is to sit and start doing it one by one. I know this is not possible if the files are in thousands. So lets see how we can make it done using the Windows Power Shell Programming.
- This might be the scenario like you need to remove the “Copy of” from all the file name.
2. Now press Shift and right click in the existing folder and select Open Window Command Here option
3. Type Powershell and hit Enter, powershell will get active on window.
4. Now write following command. You can replace the bold text according to your situation. Now hit Enter and Done 🙂
get-childitem *.zip | foreach {rename-item $_ $_.name.replace(“Copy of ,””)}