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.
PowershellWindows Batch

Avatar of undefined
Last Comment
Roberto Madro R.

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Qlemo

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.
Roberto Madro R.

ASKER
oBdA comes through again, saved my skin, many thanks.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes