How to copy all file names of a folder

Status
Not open for further replies.

cotufa-ssdd

Active Member
387
2011
82
0
Here is neat command line that helped me out.

I had a folder with a bunch of files and I needed a list of all the file names.

Manually would have taken for ever, so here is a faster way to do it in case you need to:

Start>Run>cmd

6a6bee175f.png


6c773faf1a.png


From here cd to the location of your folder. In my case it was a folder named classes on my desktop. So:

8d27ac008f.png


That should give you something like this:

105764b584.png


Once your are here, simply type in the following:
DIR /B /O:N > filename.txt


6b5f328d86.png




Hit enter and voila!

You now have .txt file on your folder named filename.txt with all the file names of your folder. You copy them and send them to excel or whatever you want.
 
10 comments
Status
Not open for further replies.
Back
Top