---------- Forwarded message ----------
Date: Mon, 3 Apr 2000 09:26:52 -0700
From: "Gerald E. Boyd" <[EMAIL PROTECTED]>
Reply-To: "PC-ASK is one-stop PC support forum."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How do I print directory?
Listowner - [EMAIL PROTECTED]
------------------------------------------------
At 11:21 AM 4/3/00 -0400, Cherie wrote the following:
>I need to print the contents of a drive, the directories, and the files
>within the directories in TREE form..how do I do this WITHOUT using DOS??
>Is there free software that will do this for me??
>
>also, just in case there is no other way..what is the dos command..I can
>NOT ever seem to remember the commands..which is why I stay away from dos!!
Direct the output of the dir command to the printer...
c:\windows> dir /s > prn
or you could redirect the output to a text file that you could print from
within Windows. Something along the lines of c:\windows> dir /s > c_dir.txt
To learn how a DOS command works and the switches that can be applied to the
command, type the command followed by /?. Example: dir /?
Displays a list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
[/O[[:]sortorder]] [/S] [/B] [/L] [/V] [/4]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
/P Pauses after each screenful of information.
/W Uses wide list format.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest
first)
G Group directories first - Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/V Verbose mode.
/4 Displays year with 4 digits (ignored if /V also given).
Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
You could also look in Start -- Help -- MS-DOS
--
Gerry Boyd -- [EMAIL PROTECTED]
To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html