I need to list the names of the files and store it in as text file!
What I did is, I used the following dos command
x:\xyz> dir *.* > files.txt
what this does is that, it stores the names of the files present in directory xyz as well as size, time and date of the files!
How to get only the names of files?
Best Answer
Try
dir /b
, for bare format.dir /?
will show you documentation of what you can do with thedir
command. Here is the output from my Windows 7 machine: