I
I
ivansam_vrn2018-06-09 09:57:28
PDF
ivansam_vrn, 2018-06-09 09:57:28

How to automatically rename PDF according to file content?

Using the excel and word merge tool, I create several personal letters. Then I save them in a separate folder in PDF format. They are saved, of course, under the names part_01.pdf, 02, 03, etc. 5b1b7a491136c374735068.pngI need them to be renamed at once in accordance with the surname, which is indicated in the letter itself. 5b1b7a0fd3238346258438.pngSo that in the end it turned out: Ivanov I.I..pdf, Petrov P.P..pdf, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2018-06-09
@Moskus

Since the files are created in the order that the rows are stored in your original Excel file, you can write a batch file that will loop through the pdf files by serial number and rename them based on what name is stored in the corresponding row. You just have to add a column with numbers in order to Excel.
Syntax and examples: https://ss64.com/nt/for_f.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question