P
P
photosho2020-09-04 17:16:02
Windows
photosho, 2020-09-04 17:16:02

How to automatically rename folders?

There is a list of matches between old and new folder names, the list is very large. Tell me, how can I quickly rename folders in Windows using this list? It can be presented in any format. Maybe someone knows an automated means to do this?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
res2001, 2020-09-04
@photosho

Batch version for files in the same directory and file names are not template:

chcp 1251
for /f "tokens=1,2 delims=<тут подставить символ TAB>" %%a in (file.txt) do (
    ren "<имя каталога>\%%a" "%%b"
)

put the list of files to be renamed into the file file.txt and put it next to the batch file. file.txt must be in 1251 encoding. File.txt format:
<имя исходного файл с расширением><TAB><имя результирующего файла с расширением>

The file names must not contain the TAB symbol
. Substitute the appropriate values ​​in the script instead of comments in angle brackets.
Depending on the form in which you can provide a list of files, you can remake the script.
The script has not been tested.

K
Konstantin, 2020-09-04
@Spoyk

What doesn't Google know? https://www.den4b.com/products/renamer

A
Aetae, 2020-09-04
@Aetae

Take your list and convert it to

chcp 65001
ren "старое название" "новое название"
ren "старое название 2" "новое название 2"
pause
save as .bat and run.

A
Artem @Jump, 2020-09-04
curated by the

How to automatically rename folders?
Script.
Maybe someone knows an automated means to do this?
Of course - cmd, powershell

J
John Smith, 2020-09-11
@ClearAirTurbulence

Self-written script, reneimer program, built-in renewer in Total Commander.
There are probably a lot of details on the first two links from the Google results below.
https://www.google.com/search?q=batch+rename+accor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question