SyntaxFix
Write A Post
Hire A Developer
Questions
If you just want to get the file names and not directory names then use :
dir /b /a-d > file.txt