|You mean list all .txt files in a directory on one line?|
for /f "tokens=*" %%A in ('dir /b /s "*.txt" 2^>nul') do (
Place the script inside the folder you want to read the file names from, otherwise you can change "%~dp0" to the directory you want.
If you mean add text to every .txt file in a folder, it really depends on what you want to add, and if you want to put a variable or just a string there.
Marking answers that solve, or help helps you solve a problem as "Best Answer" also helps other people solve similiar ones in the future.
message edited by RainBawZ