recursive renaming file names + folder names with a batch file

前端 未结 3 1745
面向向阳花
面向向阳花 2020-12-03 13:01

I like to create a batch file (winxp cmd) that recursively goes through a chose folder and sub folders and renames there files+folders with the following rules:

from

3条回答
  •  悲&欢浪女
    2020-12-03 13:24

    with this directory tree:

    .
    ├── 00v0w
    │   ├── 12V0W
    │   ├── 12d0w
    │   └── 12v0d
    ├── 11V0W
    ├── 11d0w
    └── 11v0d
    

    these renamer commands:

    $ renamer --regex --find '[vV]' --replace 'Y' '**'
    $ renamer --regex --find '[wW]' --replace 'Z' '**'
    

    would produce this output:

    .
    ├── 00Y0Z
    │   ├── 12Y0Z
    │   ├── 12Y0d
    │   └── 12d0Z
    ├── 11Y0Z
    ├── 11Y0d
    └── 11d0Z
    

提交回复
热议问题