Solved using dir to display filename and no directories?

June 29, 2014 at 15:09:27
Specs: Windows 64
dir /b c:\temp >m.txt
How can I alter the above command so that any subfolders in the folder c:\temp are not outputted to m.txt. I just want only files to be displayed, no subfolders. Thanks.

See More: using dir to display filename and no directories?

Report •

#1
Report •

#2
June 29, 2014 at 18:46:42
✔ Best Answer
dir /b /a-d c:\temp >m.txt

Report •

#3
July 1, 2014 at 10:12:05
Thank you again for your help.

Report •
Related Solutions


Ask Question