I've already found most of the answers, but I still can't use the batch file to create what I need.
- I need to create folders according to the list in folders.txt.
- Create an item.cs.md file in the folders.
- Write the content from the content.txt file to the file one by one.
Folders are already creating me files as well, but the content is always filled with just the one from the underline content.txt line.
@echo off
SETLOCAL
for /f "delims=" %%l in (content.txt) do (
for /f "tokens=1" %%a in (folders.txt) do (
if not exist "%%a" mkdir "%%a"
ECHO %%l>%%a\item.cs.md
))
Thanks for your time and tips.
Documentation: How to create multiple text files each with different names using a batch file? create folders from each line of a textfile in bat How to create folders and files from text file with same names to insert with corresponding name? Batch File To Copy Every Line In .txt File And Then Create New .txt File For Each Line