Link to home
Create AccountLog in
Avatar of Roberto Madro R.
Roberto Madro R.Flag for United States of America

asked on

Apply a new name to a folder based on its old name, read from a list

Using Powershell, is there a way to read from a directory all the folder (folder names), save them to an Excel file, in Excel, and in an adjacent column, provide a new Folder name, and then via the script, apply the new name based onto the folder, based on its old name.

Your thoughts are appreciated.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
oBdA assumes you want to rename subfolders too. If you only want to do for top-level folders below a folder, just remove -Recurse from the CSV generating command.
Avatar of Roberto Madro R.

ASKER

oBdA comes through again, saved my skin, many thanks.