Jump to content

Recommended Posts

Posted

Hi

 

I want to rename multiple folders which are not in my csv file. They are all in the same folder, i want to rename to i.e folder1 to folderold

 

Thanks

MS

Posted (edited)

Hi MS2011, do you have a language preference/requirement?

 

EDIT: Just written an outline to point you in the right direction - based on VB.NET because that's what I've been working in recently. It's not in any language, not even English!

 

read file
vb.net has SPLIT which will pull contents into an array and splits according to comma
TRIM to remove leading & trailing spaces

count = 0
UNTIL end of file
$folderName = $ArrayFromFile(count)
IF NOT ArrayFromFile.contains($folderName) Then
	Windows.System.RenameFolder($foldername & count)
End If
End Until

Edited by Bedders

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...