Oana
Oana

Reputation: 143

How to create multiple text files each with different names using a batch file?

I would like to create multiple empty text files each with a different name from a list of 70+ names, all within the same folder.

Ex: cat, dog, computer, tree.

To output to:

cat.txt

dog.txt

computer.txt

tree.txt

Upvotes: 0

Views: 4351

Answers (1)

Stephan
Stephan

Reputation: 56155

for /f "delims=" %%a in (list.txt) do break>%%a.txt

Upvotes: 1

Related Questions