File List (additional text on seperate line)
Posted: 31 Aug 2021 03:28
Hi all.
I have a simple bat file that generates a list of files contained within a folder (below).
I can add text before or after the second %%f tag, to add text before or after the file name in my list, but I would like to add some text on a seperate line before the file name (example below). How would I achieve this.
Text Here
file1.txt
Text Here
file2.txt
Text Here
file3.txt
Any advice much appreciated.
Mark
I have a simple bat file that generates a list of files contained within a folder (below).
Code: Select all
(for %%f in (*.*) do @echo %%f) > list.txt
Text Here
file1.txt
Text Here
file2.txt
Text Here
file3.txt
Any advice much appreciated.
Mark