renaming files sequantially in sub folders

Bulk Rename Utility How-To's

renaming files sequantially in sub folders

Postby roikl289 » Thu Jul 30, 2020 6:24 am

I have 100 folders, and in those folders I've got 20 image files each in those folders. How do I rename all the image files 1 to 20 sequantially in one go to all those folders?
roikl289
 
Posts: 5
Joined: Thu Jul 30, 2020 6:21 am

Re: renaming files sequantially in sub folders

Postby therube » Thu Jul 30, 2020 7:30 pm

2:Name -> Remove
10:Numbering, Mode: Prefix, Folder (checkmark the box)
12:Filters, Mask: <set appropriately>, Subfolders (checkmark the box) [Refresh]

Review (Preview) the New Names to ensure they are as you want.
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming files sequantially in sub folders

Postby roikl289 » Sat Aug 01, 2020 4:28 pm

therube wrote:2:Name -> Remove
10:Numbering, Mode: Prefix, Folder (checkmark the box)
12:Filters, Mask: <set appropriately>, Subfolders (checkmark the box) [Refresh]

Review (Preview) the New Names to ensure they are as you want.



Not sure if I am doing it right. But Setting the Mask removes all the files unless I leave it at " * ". The files all rename mostly to the number "1"
roikl289
 
Posts: 5
Joined: Thu Jul 30, 2020 6:21 am

Re: renaming files sequantially in sub folders

Postby therube » Mon Aug 03, 2020 5:13 pm

If I'm understanding (your situation), for every subdirectory, count should restart at 1 (presumably going through 20).

Image

In my case, the base directory is numbered; 1 2 3, /ccc/ is numbered; 1 2, /copy of file/ is numbered; 1 2 3 4, ...
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming files sequantially in sub folders

Postby roikl289 » Tue Aug 04, 2020 4:21 am

therube wrote:If I'm understanding (your situation), for every subdirectory, count should restart at 1 (presumably going through 20).

Image

In my case, the base directory is numbered; 1 2 3, /ccc/ is numbered; 1 2, /copy of file/ is numbered; 1 2 3 4, ...


Did it but it names them 1,2,3,4 then in the next folder doesn't reset to 1 but continues counting from the other folder
roikl289
 
Posts: 5
Joined: Thu Jul 30, 2020 6:21 am

Re: renaming files sequantially in sub folders

Postby therube » Tue Aug 04, 2020 4:28 pm

Ensure:
10:Numbering, Mode: Prefix, Folder (checkmark the box)


Image
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming files sequantially in sub folders

Postby roikl289 » Tue Aug 04, 2020 4:40 pm

therube wrote:Ensure:
10:Numbering, Mode: Prefix, Folder (checkmark the box)


Image


Image

I have done all the steps, I have inputted images from 2 seperate folders
roikl289
 
Posts: 5
Joined: Thu Jul 30, 2020 6:21 am

Re: renaming files sequantially in sub folders

Postby therube » Wed Aug 05, 2020 8:10 pm

I have inputted images from 2 separate folders


What it looks like to me...

All the files are in the same (1) directory.
(Nothing displays in the 'Sub Dir' column to indicate that there is more then 1 directory involved.)

Oh, you dragged the files from their (2) respective directories into BRU.
In that case, BRU does not "know" that the files were actually from differing directories.
So if you had /dir1/test.txt & /dir2/test.txt/ & dragged test.txt from each directory into BRU, you would have the file name test.txt listed twice - with no acknowledgement that they actually resided in differing directories.

And because, with that method, BRU is not seeing any differing 'Folder' for the count reset to take effect.


(Hmm... & that said, something strange going on on my end... not sure what... so I'll stop now, for the time being...)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming files sequantially in sub folders

Postby therube » Wed Aug 05, 2020 8:40 pm

(Some things just work awkwardly in BRU...)

Seems that all the wanted folders need to be children of the same parent.
And you have to actually point to the parent folder, using the Folder tree, or by pasting (typing) its location into the "folder box".

So if you had ... you would end up with:

Code: Select all
C:\TMP\TT2016\TREE            |   C:\TMP\TT2016\TREE
|   1               |   1
|   2               |   2
|   3               |   3
|                  |   
\---Copy of 123            \---Copy of 123
    |   001               |       |   1
    |   002               |       |   10
    |   003               |       |   11
    |   004               |       |   12
    |   005               |       |   2
    |   006               |       |   3
    |   007               |       |   4
    |   008               |       |   5
    |   011               |       |   6
    |   012               |       |   7
    |   013               |       |   8
    |   014               |       |   9
    |                   |   
    +---Copy of 456             +---Copy of 456
    |       001               |       |       1
    |       002               |       |       10
    |       003               |       |       11
    |       004               |       |       12
    |       005               |       |       2
    |       006               |       |       3
    |       007               |       |       4
    |       008               |       |       5
    |       011               |       |       6
    |       012               |       |       7
    |       013               |       |       8
    |       014               |       |       9
    |                       |       
    \---Copy of 789             \---Copy of 789
            001               |               1
            002               |               10
            003               |               11
            004               |               12
            005               |               2
            006               |               3
            007               |               4
            008               |               5
            011               |               6
            012               |               7
            013               |               8
            014               |               9
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming files sequantially in sub folders

Postby roikl289 » Wed Aug 05, 2020 9:02 pm

therube wrote:(Some things just work awkwardly in BRU...)

Seems that all the wanted folders need to be children of the same parent.
And you have to actually point to the parent folder, using the Folder tree, or by pasting (typing) its location into the "folder box".

So if you had ... you would end up with:

Code: Select all
C:\TMP\TT2016\TREE            |   C:\TMP\TT2016\TREE
|   1               |   1
|   2               |   2
|   3               |   3
|                  |   
\---Copy of 123            \---Copy of 123
    |   001               |       |   1
    |   002               |       |   10
    |   003               |       |   11
    |   004               |       |   12
    |   005               |       |   2
    |   006               |       |   3
    |   007               |       |   4
    |   008               |       |   5
    |   011               |       |   6
    |   012               |       |   7
    |   013               |       |   8
    |   014               |       |   9
    |                   |   
    +---Copy of 456             +---Copy of 456
    |       001               |       |       1
    |       002               |       |       10
    |       003               |       |       11
    |       004               |       |       12
    |       005               |       |       2
    |       006               |       |       3
    |       007               |       |       4
    |       008               |       |       5
    |       011               |       |       6
    |       012               |       |       7
    |       013               |       |       8
    |       014               |       |       9
    |                       |       
    \---Copy of 789             \---Copy of 789
            001               |               1
            002               |               10
            003               |               11
            004               |               12
            005               |               2
            006               |               3
            007               |               4
            008               |               5
            011               |               6
            012               |               7
            013               |               8
            014               |               9



thanks works now, it also seems like you have to sort the list by sub directory too
roikl289
 
Posts: 5
Joined: Thu Jul 30, 2020 6:21 am


Return to How-To