-4

I need to create 500 empty files with names that are contained in filenames.txt, which contains 500 entries, with one line per entry. How do I do that in Windows?

Edit: Clarified the title

New contributor
Knocks is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1

Try this:

@Echo off & chcp 65001 & For /F "Tokens=* delims= " %%a in ('type filenames.txt') do type nul >%%a

Note: If there are no extensions specified inside filenames.txt, then add it at last of the code.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.