r/PowerShell • u/Interesting-Turn2916 • Nov 19 '25
Question Help with folder rename script
Hello, Looking to bulk rename 100s of folders. I have a CSV which contains the full folder name
E.g
C:\dump\folder 1
and next to it what i would like the folder to be renamed, again full folder path rather than just new name
C:\dump\folder renamed
This CSV structure contains multiple sub folders all listed with full folder path rather than just folder name
What would the script be to bulk rename them
CSV titles are old and new
Do i need to ammend so its not full folder path but just folder name for the subfolders etc.
Thanks
4
Upvotes
View all comments
Show parent comment
3
u/BlackV Nov 19 '25
p.s. formatting
it'll format it properly OR
Inline code block using backticks
`Single code line`inside normal textSee here for more detail
Thanks