Solved

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

Posted on 2011-03-12
5
208 Views
Last Modified: 2012-05-11
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
Comment
Question by:Europa MacDonald
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
ewkelly earned 500 total points
ID: 35116697
Open a command prompt and type in  dir c:\thefoldername\*.*  >> filelist.txt
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 35116728
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
 

Author Comment

by:Europa MacDonald
ID: 35116780
where is  filelist.txt  created ?
0
 

Author Comment

by:Europa MacDonald
ID: 35116785
found it

can I do this without having the creation time and date and file size printed ?
0
 
LVL 5

Expert Comment

by:ewkelly
ID: 35116929
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An article on effective troubleshooting
A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question