Printing folder names

  • Thread starter Thread starter M Weiss
  • Start date Start date
Any way to print the list of files in folders that are on the hard drive?

Start->all programs->accessories->command prompt
Change CD.. to the directory you want to print
and either
DIR : Displays a list of files and subdirectories in a directory.
DIR :
DIR : DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
DIR : [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
DIR :
DIR : [drive:][path][filename]
DIR : Specifies drive, directory, and/or files to list.
DIR :
DIR : /A Displays files with specified attributes.
DIR : attributes D Directories R Read-only files
DIR : H Hidden files A Files ready for archiving
DIR : S System files - Prefix meaning not
DIR : /B Uses bare format (no heading information or summary).
DIR : /C Display the thousand separator in file sizes. This is the
DIR : default. Use /-C to disable display of separator.
DIR : /D Same as wide but files are list sorted by column.
DIR : /L Uses lowercase.
DIR : /N New long list format where filenames are on the far right.
DIR : /O List by files in sorted order.
DIR : sortorder N By name (alphabetic) S By size (smallest first)
DIR : E By extension (alphabetic) D By date/time (oldest first)
DIR : G Group directories first - Prefix to reverse order
DIR : /P Pauses after each screenful of information.
DIR : /Q Display the owner of the file.
DIR : /S Displays files in specified directory and all subdirectories.
DIR : /T Controls which time field displayed or used for sorting
DIR : timefield C Creation
DIR : A Last Access
DIR : W Last Written
DIR : /W Uses wide list format.
DIR : /X This displays the short names generated for non-8dot3 file
DIR : names. The format is that of /N with the short name inserted
DIR : before the long name. If no short name is present, blanks are
DIR : displayed in its place.
DIR : /4 Displays four-digit years
DIR :
DIR : Switches may be preset in the DIRCMD environment variable. Override
DIR : preset switches by prefixing any switch with - (hyphen)--for example, /-W.

dir /? /S >toprinter.prn or to file >tofile.txt
 
In
M Weiss said:
Any way to print the list of files in folders that are on the
hard
drive?


Here are three ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and
put it in any folder you want)

Then open notepad, open tempfilename, and print it from there.



2. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379
and follow the instructions there.



3. Download and use any of the several freeware/shareware
utilities that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
M said:
Any way to print the list of files in folders that are on the hard drive?


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