Save directory listing in a text file

  • Thread starter Thread starter - 781 -
  • Start date Start date
7

- 781 -

How does one save contents of a directory, files and folders, in a text
file?
Thanks
Gino
 
How does one save contents of a directory, files and folders, in a text
file?
Thanks
Gino

c:>cd \DirectoryOfInterest
c:\DirectotyOfInterest>dir *.* >file.txt
gives you a single directory

c:\DirectoryOfInterest>dir /s *.* >file.txt
gives you all subdirectories too.

Lots more possibilities. "dir /?" to see them all.

Chuck
I hate spam - PLEASE get rid of the spam before emailing me!
Paranoia comes from experience - and is not necessarily a bad thing.
 
How does one save contents of a directory, files and folders, in a text
file?
Thanks
Gino

c:>cd \DirectoryOfInterest
c:\DirectotyOfInterest>dir *.* >file.txt
gives you a single directory

c:\DirectoryOfInterest>dir /s *.* >file.txt
gives you all subdirectories too.

Lots more possibilities. "dir /?" to see them all.


Chuck
I hate spam - PLEASE get rid of the spam before emailing me!
Paranoia comes from experience - and is not necessarily a bad thing.
 
- 781 - said:
How does one save contents of a directory, files and folders, in a
text file?
Thanks
Gino
_________________________________

Hi, Gino!
You'd be much better off with a utility like "The Widget Print
Directory":
it will print all of the contents of a selected directory,
sub-directories, and its contents. Choose from 16 different formatting
options like: Full path name or just the file name; Created time; Last
access time; Last written to time; File size in bytes or kilobytes.
Date formatting options and many more. Program gives the ability to
print the listing or saving the listing as a tab or comma delimited
file so that it can be opened by Excel.
http://widgetech.com/freeware/printdir3_1.shtml

Or Master Lister from http://www.axiomx.com/masterlister.htm
it makes print outs of the contents of any directory and drive on your
computer, print a book of your fonts, or get a comprehensive
description of your system! MasterLister is the perfect tool for
technical support teams and for anyone that needs to keep track of the
assets on their computer. MasterLister allows you to quickly and easily
create simple reports about a specific computer.
 
Greetings --

From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR
command (type "dir /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


Bruce Chambers

--
Help us help you:



You can have peace. Or you can have freedom. Don't ever count on
having both at once. -- RAH
 
Back
Top