You can use PowerShell to bulk rename directories and remove the leading characters from their names. Here’s an example script that removes the first 4 characters from all directory names in the current directory- Get-ChildItem -Directory | Rename-Item -NewName { [string]($_.Name).Substring(4) }
複製代碼 |