home *** CD-ROM | disk | FTP | other *** search
File List | 1993-07-07 | 1.2 KB | 24 lines |
- Displays a list of files and subdirectories in a directory.
-
- DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
- [/O[[:]sortorder]] [/S] [/B] [/L]
-
- [drive:][path][filename]
- Specifies drive, directory, and/or files to list.
- /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
- /S Displays files in specified directory and all subdirectories.
- /B Uses bare format (no heading information or summary).
- /L Uses lowercase.
-
- Switches may be preset in the DIRCMD environment variable. Override
- preset switches by prefixing any switch with - (hyphen)--for example, /-W.
-