Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-03-12
5
Medium Priority
?
212 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 2000 total points
ID: 35116697
Open a command prompt and type in  dir c:\thefoldername\*.*  >> filelist.txt
0
 
LVL 84

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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
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.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

596 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