Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

printing file names to file

Posted on 2006-06-16
1
Medium Priority
?
200 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 200 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

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

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

886 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