batch renaming folders including subfolders

N

name

Hello.

In windows, I know it's possible to rename multiple files or folders
by selecting them all and renaming one and windows will rename all of
them with a consecutive number behind the filename for all of the
selected files or folders.
Now I want to rename all folders in a tree structure of subfolders and
I encounter the following problem. Whenever a folder is renamed before
a subfolder, windows will give an error message because the subfolder
is no longer located in the original folder that has been renamed
previously. So, in order to solve this, I should sort the folders in
such a way that all subfolders occur before the folders that contain
them. Is there any obvious way to do this or can it be done at all?
I don't see any obvious attributes to sort the list of folders on, in
order to accomplish that subfolders always occur before the folders
that contain them, so I would be able to select all the folders and
rename them all at once without error messages because windows can't
find folders inside previously renamed folders.

Kind regards and thanks in advance for any feedback, Niek
 
N

name

Hello.

In windows, I know it's possible to rename multiple files or folders
by selecting them all and renaming one and windows will rename all of
them with a consecutive number behind the filename for all of the
selected files or folders.
Now I want to rename all folders in a tree structure of subfolders and
I encounter the following problem. Whenever a folder is renamed before
a subfolder, windows will give an error message because the subfolder
is no longer located in the original folder that has been renamed
previously. So, in order to solve this, I should sort the folders in
such a way that all subfolders occur before the folders that contain
them. Is there any obvious way to do this or can it be done at all?
I don't see any obvious attributes to sort the list of folders on, in
order to accomplish that subfolders always occur before the folders
that contain them, so I would be able to select all the folders and
rename them all at once without error messages because windows can't
find folders inside previously renamed folders.

Kind regards and thanks in advance for any feedback, Niek

Thanks for all the help everyone.
I forgot to mention I was talking about folders in the search results
for "*", as a list of folders, subfolders
and files.
Anyway... I figured it out I think... sorting them backwards on the
attribute 'path to folder' seems to ensure that subfolders are
sequenced before the folders they occur in, in the list of folders.
But it seems this attribute is only available in vista and not in xp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top