Avatar of OrbusEddy
OrbusEddy
Flag for New Zealand asked on

Find and Rename Folders

I have a list of Folder names, and another list of what the names need to be changed to.I know how to rename the folders, but I need to know a way to locate them first, as they could be anywhere inside a network drive.
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
abhinayp86

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
spprivate

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.
abhinayp86

are all these folders inside a same parent folder?
abhinayp86


           
      dim path as ="C:\Temp\"

        dim OldFolderName  as string = "Folder1"

        dim NewFolderName as string="RenamedFolder1"

       'Create a newfolder with the ur new name

        Directory.Move(path + OldFolderName  , path + NewFolderName)

       'Delete the old folder

        Directory.Delete(path + OldFolderName)
abhinayp86

Correction:      dim path as string ="C:\Temp\"
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23