Solved

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

Posted on 2011-03-12
5
205 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:MichaelGlancy
  • 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:MichaelGlancy
ID: 35116780
where is  filelist.txt  created ?
0
 

Author Comment

by:MichaelGlancy
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2016: DNS on the server or router? Advices? 4 21
Scheduled Tasks Tweak 5 27
Problem to App source 6 33
facebook change 4 34
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

785 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