Solved

printing file names to file

Posted on 2006-06-16
1
192 Views
Last Modified: 2012-08-14
Hi
I can't remember the command to create a text file of a directory list - please could someone enlighten me

thanks
0
Comment
Question by:lz7cjc
1 Comment
 
LVL 4

Accepted Solution

by:
DarkXiphoid earned 50 total points
ID: 16918901
Quick and dirty dos command:

DIR /S | FILELIST.TXT

or try this:

The Dos Tree command.

Tree \ (directory) /f >treelist.txt
For example I have Dos folder with a sub-folder. This command lists
the folder and the sub-folder and all the files in both into the
file Treelist.txt. You can then edit/view/print the file.
Tree \dos /f >treelist.txt

To display the results only to the screen try this:
Tree \dos /f |more

The | pipe symbol is the shifted \ key. More is used instead of /p
to pause each screen full so you can view it.

To display only the directory tree with no files omit the /f.

From a Dos prompt enter  Tree /?  for more info.

else: use freeware like

PrintFolder 1.1a
http://no-nonsense-software.com/freeware/

MaxLister 2.31
http://www.acc.umu.se/~max/maxlister/index.html
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now