" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">

                        DIR (DIRECTORY) COMMAND

Purpose:   Lists all files in a  directory or files specified in the
           command.


Syntax:    DIR [d:][path][file_neme[.ext]]
           [/P] [/M[ORE]] [/W] [/L] [/U]
           [/C[=controls]]

Type:      Internal command

Parameters:

[d:][path][filename[.ext]]
        - defines a file to be viewed.

/P      - causes the directory display to pause once the screen is filled.
          On the bottom line of the screen you will see the message:

               Strike any key when ready...

          To resume scrolling the display, press any key.

/W      - displays filenames and subdirectories of the specified directory
          only.

/M[ORE] - selects page mode.

/L      - displays filenames in small letters.

/U      - displays filenames in small letters, and directories - in
          capital letters.

/C      - displays the information about files in a format, specified by
          the user. The following information may be displayed:
          N - filename                   E - name extension
          S - file size (bytes )         D - date of last modification
          T - time of last modification  P - whole path to file
          H - directory name             F - number/size of files
          U - drive mark                 O - general statistics

Notes:
1. Directories are marked by <DIR> in the field of file length.
2. A file name and extension may contain global characters "?", "*".
3. DIR command can work faster, if you set more buffers (3 or more) in the
   BUFFERS= command of the CONFIG.SYS file.

Examples:

1. The following command lists all files and subdirectories from the default
drive:

        A>dir

The result can be the following:

        Volume in drive A is MYDISK
        Directory of *.*

         FILE1.A          10368    7-20-83  12:13p
         FILE2.A           1613    4-16-86  12:40p
         9X                  31    8-17-85  10:59a
        [LEVEL2   ]       <DIR>    9-09-85  12:10p
         FILE1             2287    3-03-86  11:10a
              5 File (s)   141512 bytes free

2. The following command lists the contents of the current directory of the
   drive C:

        A>dir C:

3. This command lists the contents of the directory \LEVELS2:

        A>dir \level2

The following information will be displayed:

        Volume in drive A is MYDISK
        Directory of \LEVEL2\*.*

        MYPROG.COM         2463   7-30-82  8:55a
               1 File(s) 141312 bytes free

4. There are two special elements of the directory, marked by "." and "..".
They are, respectively, the current directory and the directory of the
higher level (in this case, the parent directory).  Consequently, if the
current directory is the specified directory, and you want to look through
the directory of the higher level, you can type:

        A>dir..

5. If you type the following command:

        A>dir *.a

the following information will be displayed:

        Volume in drive A is MYDISK
        Volume Serial Number is 0320-E338

        Directory of *.a
         FILE1.A              1580 08-12-1993 13:44
         FILE3.A              9954 08-14-1993 16:30

              11534 bytes in    2 file(s)
             751616 bytes free