Archived from groups: microsoft.public.windowsxp.newusers (
More info?)
On Sun, 3 Jul 2005 13:19:52 -0400, "M Weiss" <m2weiss@comcast.net> wrote:
>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
--
more pix @
http://members.toast.net/cbminfo/index.html