Page 1 of 1

Renamed Files and Folder count

PostPosted: Thu Oct 01, 2015 7:23 pm
by brana
Hi,

I am not sure if this is a duplicate thread. But could not found anything related so far.

Is there a way to find the total number of files and folders (including sub-folders and files) that are renamed? I am using BRU command.

Thanks,
brana

Re: Renamed Files and Folder count

PostPosted: Mon Oct 05, 2015 11:49 am
by Stefan
Hi,

what do you mean by """that are renamed?"""

Do you mean "in total", like since using BRU, or like that?

If you perform a renaming, you are prompted anyway (maybe disabled? See menu Options > Display > ...)

Another thing is you can enable a log feature, see Options menu too. Than you can count the lines in the log file, I guess.



Maybe you can clarify what you are after?



 

Re: Renamed Files and Folder count

PostPosted: Mon Oct 05, 2015 2:36 pm
by brana
Thanks for the reply.

Actually I wanted to count the number of folders that are renamed and number of files that are renamed.
Like: Total Folders renamed = 1, Total Files renamed = 2

I am using 32 bit BRC command. Here is my scenario:
C:\>BRC32 /DIR:"C:\TestFolder" /STRIPSYMBOLS /NODUP /EXECUTE

When I run this command the I get output like this:

Processing Folder C:\TestFolder\
Filename TestFolder requires no change
Filename BRC_Unicode_64.zip renamed to BRCUnicode64.zip

Processing Folder C:\TestFolder\Microsoft.Bcl.1.1.7\
Filename Microsoft.Bcl.1.1.7 renamed to MicrosoftBcl11.7
Filename ABC - Text.pptx renamed to ABC Test.pptx
Filename TestDB.pptx requires no changes

Here, Microsoft.Bcl.1.1.7 is renamed, so total folders renamed = 1.

and BRC_Unicode_64.zip and ABC - Text.pptx are renamed, so total files renamed = 2.

Note that the output says Filename for folders also. I hope this makes sense.

Re: Renamed Files and Folder count

PostPosted: Tue Oct 06, 2015 8:51 am
by Stefan
Thanks for clarifying.

>>Actually I wanted to count the number of folders that are renamed and number of files that are renamed.
>>Like: Total Folders renamed = 1, Total Files renamed = 2

I am not aware of such feature of BRC.


If I really would need that, I would do a workaround:
- get a list of all files and folders
- do the name manipulation with BRC
- get a list of all files and folders
- create a diff of both lists.
Not nifty and not nice, but could work.



>>Note that the output says Filename for folders also. I hope this makes sense.
Yes, makes sense. A folder is a FILE with a special *Directory* attribute. Nothing more. Basically.

Re: Renamed Files and Folder count

PostPosted: Tue Oct 06, 2015 2:30 pm
by brana
Thanks Stefan for your suggestions.