?
Solved

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

Posted on 2011-03-12
5
Medium Priority
?
210 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

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

765 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