This is probably a very simple question, but I\'m having trouble with it. Basically, I am trying to write a Batch File and I need it to list all the files in a certain directory
The full command is:
dir /b /a-d
Let me break it up;
Basically the /b is what you look for.
/b
/a-d will exclude the directory names.
/a-d
For more information see dir /? for other arguments that you can use with the dir command.
dir /?
dir