home *** CD-ROM | disk | FTP | other *** search
- LS - Formatted Directory Utility
- ----------------------------------
-
- Syntax: LS [FILESPEC]
-
- Options: /ATTRIBUTES default
- /CLUSTERS
- /DATE
- /DIRECTORIES default
- /EXCLUDE=<FILESPEC>
- /EXTENSION
- /HEADER default
- /HIDDEN
- /OUTPUT=<FILENAME>
- /PRINT
- /REVERSE
- /SIZE
- /SYSTEM
- /TRAILER default
- /VERSION
- /WIDE
-
- Remarks: LS displays a formatted directory listing very similar to that
- available with the DOS 'DIR' command. LS provides more
- flexibility than the DIR command, and has several useful
- additional features. See the 'Options' section below for a
- summary of the features available.
-
- Wild Cards: The wild card specification used with LS is different to that
- used by DOS. DOS does not match wild card specifications
- correctly. LS will match any wild card specification exactly.
- The following are examples:
-
- *s* Matches any filename including an 'S' character.
- ?*s*.tmp Matches any file with type 'TMP' whose filename
- contains an 'S' after the first character.
- *tmp*.* Matches any file with 'TMP' in the name.
- *.* Matches any file with a name and extension.
- * Matches all filenames regardless of extension.
-
- Note the difference of '*' and '*.*'. This implies that the
- '.' character is treated exactly as any other character.
-
- DOS would fails with all of the first three examples, by matching
- ALL filenames with the specifications given!
-
- Options: /ATTRIBUTES (default)
- Displays the file attributes with the directory entry for each
- file. The attribute codes are (A)rchive, (H)idden, (R)ead-only
- and (S)ystem.
-
- /CLUSTERS
- Displays the number of disc clusters associated with the file.
- A cluster is the minimum allocation unit on the disc and is made
- up on an integral number of sectors, usually 4 for a fixed disc.
-
- /DATE
- Sorts the directory listing on ascending file date and time
- instead of the default name.
-
- /DIRECTORIES (default)
- Includes directories in the listing. This is a default. If the
- option is explicitly specified, the directories '.' and '..' will
- be included in the list. If /NODIRECTORIES is specified, no
- directories will be shown.
-
- /EXCLUDE=<FILESPEC>
- Excludes files matching the specified filespec from the directory
- list.
-
- /EXTENSION
- Sorts the directory listing on file extension and then name
- instead of the other way round.
-
- /HEADER (default)
- Includes the directory header in the listing. The header simply
- contains the name of the directory.
-
- /HIDDEN
- Allows DOS hidden files to be included in the listing.
-
- /OUTPUT=<FILENAME>
- Forces the directory listing output to go to the named file
- rather than the screen.
-
- /PRINT
- Forces the directory listing output to go to device PRN: rather
- than the screen.
-
- /REVERSE
- Reverses the directory listing sort order, i.e. all sorting will
- be descending rather than ascending.
-
- /SIZE
- Sorts the directory listing by file size.
-
- /SYSTEM
- Allows DOS system files to be included in the listing.
-
- /TRAILER
- Displays the directory listing trailer which includes a file
- count, size total and shows the free bytes remaining on the
- device.
-
- /VERSION
- Shows the LS version number.
-
- /WIDE
- Generates a wide listing suitable for output to a list device.