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
Moderator: DosItHelp
Code: Select all
(for %%f in (*.*) do @echo %%f) > list.txt
Code: Select all
>"list.txt" (for %%f in (*.*) do @echo Text here&echo %%f)