Answer the question
In order to leave comments, you need to log in
How to create multiple files with names from one list and content from another?
Help someone who doesn't know how to program.
As I understand it, I need to create a batch file that creates a lot of non-empty files, the names of which are taken from one list located in the names.txt file , and the content (text in Russian: letters, spaces and, possibly, punctuation marks) from the second list , located in the contents.txt file .
Here I found the answer to how to create a lot of empty files using a batch file: FOR /F %%i in (wer.txt) do cd. > %%i
The question remains how to make content from the second list taken?
Answer the question
In order to leave comments, you need to log in
type filename.txt > %%i instead of cd. > %%i
Write the contents of filename.txt to a new file.
UPD Fundamentally bat do?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question