1

I want to know how to make a batch file list files, but in text form, just as you would make it say hello world using the echo command. I don't want it to create another file, but if it is needed, I will create a folder for it.

Here is the command that will create a text file:

dir /b > filelist.txt
xtilly5000
  • 23
  • 2
  • Why not create a file and read the file..? http://stackoverflow.com/questions/155932/how-do-you-loop-through-each-line-in-a-text-file-using-a-windows-batch-file – 13aal Jun 28 '16 at 19:19
  • what do you mean by : "but if it is needed, I will create a folder for it." – SomeDude Jun 28 '16 at 19:30

1 Answers1

0

Just remove the part redirecting to file, like this:

dir /b