How to rename all subfolder names?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bart1969
Junior Member
Junior Member
Posts: 3
Joined: 2022-06-30, 14:47 UTC

How to rename all subfolder names?

Post by *bart1969 »

my problem is not "changing filenames". I want to fix the folder names.
I want to change the non-English character letters in 34,000 files in 2400 folders to English characters.
I can see all the files in the folder I want to fix with the "CTRL+B" key combination. But that doesn't give me a chance to fix subfolders.
It is not possible for me to deal with 2400 folders one by one.
what is the way to fix all subfolder names?
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to rename all subfolder names?

Post by *Stefan2 »

bart1969 wrote: 2022-06-30, 15:02 UTC
It is not possible for me to deal with 2400 folders one by one.
Why not?
One night and done.

You can create a database (text file with oldName | newName) and search for a powershell script to execute the renaming.
(but start renaming with deepest sub folder)

Or do you want something like changing all ê to e ?



 
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to rename all subfolder names?

Post by *white »

Use Search and then Feed to listbox.
bart1969
Junior Member
Junior Member
Posts: 3
Joined: 2022-06-30, 14:47 UTC

Re: How to rename all subfolder names?

Post by *bart1969 »

Stefan2 wrote: 2022-06-30, 15:10 UTC
bart1969 wrote: 2022-06-30, 15:02 UTC
It is not possible for me to deal with 2400 folders one by one.
Why not?
One night and done.

You can create a database (text file with oldName | newName) and search for a powershell script to execute the renaming.
(but start renaming with deepest sub folder)

Or do you want something like changing all ê to e ?



 
There are 6 letters in my folders that are not found in English. Ç, Ğ, İ, Ö, Ş, Ü.
I want to replace these letters with English similar letters.
I solved the problem with the files. Only subfolders remained.
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Re: How to rename all subfolder names?

Post by *dindog »

http://www.den4b.com/products/renamer
I prefer this FREE for non-commercial use rename soft if the rename task is complicated.
It is easy to use and flexible. From simple replace to script program renaming, save me hell lots of time.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to rename all subfolder names?

Post by *nsp »

Search and find folders you want to rename and:

in Search For enter

Code: Select all

Ç|Ğ|İ|Ö|Ş|Ü
in Replace with :

Code: Select all

C|G|I|O|S|U
You can build a complete list and save it for later use.
You can also give a look to translit wdx.
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: How to rename all subfolder names?

Post by *Gral »

Important notice: use reverse by name order for search results, so deeper folders go first, otherwise when you rename high levels folders you get deeper ones inaccesible.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to rename all subfolder names?

Post by *nsp »

Good point gral if you want, you can use this small script to count depth of a file when using WinScriptsAdv_wdx.:
  • (un-optimal)Scrript\Depth.vbs

    Code: Select all

    content =  Len( filename ) - Len(Replace(filename,"\", "") )
  • Inside option.ini add |Depth at end of ActiveScripts and then add Depth section

    Code: Select all

    [Script] 
    ActiveScripts=...|Depth
    '
    '
    [Depth]
    Script=Depth.vbs
    content=Depth
    extensions=*
    FoldersPaths=1
Once setup, you can add a depth column [=winscriptsadv.Depth] in a new column view and if you have natural sorting for number you can sort in reverse to be sure you rename child before parent.
User avatar
Dalai
Power Member
Power Member
Posts: 9365
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to rename all subfolder names?

Post by *Dalai »

2nsp
There is the plugin FileName_ChrCount which provides such a field (among others).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
bart1969
Junior Member
Junior Member
Posts: 3
Joined: 2022-06-30, 14:47 UTC

Re: How to rename all subfolder names?

Post by *bart1969 »

Thank you. Problem solved.
Post Reply