#1 2007-03-03 08:02

affycons
Member
Registered: 2007-03-03
Posts: 4

How do I rename folders from text list?

After I 'Add Folders' (as files), and then  I 'Add Rule' in .txt file single line per name...I get 'failed to rename' errors...

What I am trying to do is to take a folder of files, duplicate it and then rename these identical folders to different names for a text list.

Offline

#2 2007-03-03 14:39

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: How do I rename folders from text list?

I can't understand what exactly you are trying to do. Can you explain in more details?
Maybe provide some screenshots, and step-by-step list of actions, including paths to your files/folders.

P.S. I had to move this topic to an appropriate section...

Offline

#3 2007-03-03 19:15

affycons
Member
Registered: 2007-03-03
Posts: 4

Re: How do I rename folders from text list?

I would like to take a batch of folders with files inside and rename the folder names from a .txt list.

For instance, If I take 'folder1', 'folder2', and 'folder3' that have some files inside,

then from a .txt file with this list:

renamed1
renamed2
renamed3

I would like it to result in: 'folder1' > 'renamed1', 'folder2' > 'renamed2', and 'folder3' > 'renamed3'.

Offline

#4 2007-03-04 01:12

affycons
Member
Registered: 2007-03-03
Posts: 4

Re: How do I rename folders from text list?

It worked on all six folders I tried this time. I did almost the same thing and did not give me the error message after only renaming 1 folder of six like before.

This time I 'deselected the parent folder'.

I think perhaps that was the problem if others get the 'failed to rename error'.

Offline

#5 2007-03-04 21:09

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: How do I rename folders from text list?

The most probable cause for your problem is... You might be trying to rename the parent folders first, and then subfolders, which will fail to rename because their paths would be changed after renaming their parent folder.

Example: If you have folders like: "C:\folder", "C:\folder\subfolder". If you rename "C:\folder" first, then "C:\folder\subfolder" folder will fail to rename because it will not be found, its path would be changed.

To eliminate this problem, you need to sort the table by "Folder" column in reverse order.

Offline

#6 2007-03-05 06:59

affycons
Member
Registered: 2007-03-03
Posts: 4

Re: How do I rename folders from text list?

Thank You, that's what had happened.

The program did my task flawlessly in seconds with 500folders/10,000 files...nice!!!

Offline

Board footer

Powered by FluxBB