About
Pricing
Community
Teams
Start Free Trial
Log in
OrbusEddy
asked on
10/7/2009
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 Programming
Visual Basic.NET
4
1
Last Comment
abhinayp86
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
spprivate
10/7/2009
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
10/7/2009
are all these folders inside a same parent folder?
abhinayp86
10/7/2009
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
10/7/2009
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