Page 1 of 1

renaming files sequantially in sub folders

PostPosted: Thu Jul 30, 2020 6:24 am
by roikl289
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?

Re: renaming files sequantially in sub folders

PostPosted: Thu Jul 30, 2020 7:30 pm
by therube
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.

Re: renaming files sequantially in sub folders

PostPosted: Sat Aug 01, 2020 4:28 pm
by roikl289
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"

Re: renaming files sequantially in sub folders

PostPosted: Mon Aug 03, 2020 5:13 pm
by therube
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, ...

Re: renaming files sequantially in sub folders

PostPosted: Tue Aug 04, 2020 4:21 am
by roikl289
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

Re: renaming files sequantially in sub folders

PostPosted: Tue Aug 04, 2020 4:28 pm
by therube
Ensure:
10:Numbering, Mode: Prefix, Folder (checkmark the box)


Image

Re: renaming files sequantially in sub folders

PostPosted: Tue Aug 04, 2020 4:40 pm
by roikl289
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

Re: renaming files sequantially in sub folders

PostPosted: Wed Aug 05, 2020 8:10 pm
by therube
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...)

Re: renaming files sequantially in sub folders

PostPosted: Wed Aug 05, 2020 8:40 pm
by therube
(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

Re: renaming files sequantially in sub folders

PostPosted: Wed Aug 05, 2020 9:02 pm
by roikl289
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