• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

how to list the names of all files in a directory to a text file

I have thousands of files in a directory and now I have to list all their names into a text file.
what is the best way to do this. btw, it would be better if each file name started on a new line.

thanks
0
Europa MacDonald
Asked:
Europa MacDonald
  • 2
  • 2
1 Solution
 
ewkellyCommented:
Open a command prompt and type in  dir c:\thefoldername\*.*  >> filelist.txt
0
 
Dave BaldwinFixer of ProblemsCommented:
Here's a fancy version of Print Folder http://no-nonsense-software.com/printfolder/  but there is a free version that I use too.  And here's a method from Microsoft: http://support.microsoft.com/kb/321379
0
 
Europa MacDonaldChief slayer of dragonsAuthor Commented:
where is  filelist.txt  created ?
0
 
Europa MacDonaldChief slayer of dragonsAuthor Commented:
found it

can I do this without having the creation time and date and file size printed ?
0
 
ewkellyCommented:
Don't think so.
If you type dir /? you will see all of the options.

What I would do is import it into a spreadsheet and delete the columns you do not want.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now