home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / sampler0 / ldir41.doc < prev    next >
Text File  |  1989-01-26  |  6KB  |  156 lines

  1.  
  2. LDIR Command                                            Version 4.1
  3. -----------                                             Jan 25, 1989
  4.  
  5. Purpose:   To display the files in one or all directories of a disk.
  6.  
  7. Format:    LDIR  [d:][\path]filespec]  [/?... /?]
  8.  
  9. Remarks:   If no operands are supplied, the files in the current path
  10.            and in the current directory are displayed. You may specify
  11.            another drive using the d: operand, and/or a path name,
  12.            and/or a file specification. Wildcard characters * and ? are
  13.            permitted in the filespec operand.
  14.  
  15.            All available memory is used. As many files as fit in memory
  16.            are sorted and displayed.
  17.  
  18.            The /? refers to optional processing switches. You may use
  19.            one or more of the following:
  20.  
  21.  
  22. Sort options:
  23.  
  24.           /D   sort by file Date
  25.           /F   sort by File name
  26.           /N   no sorting of DIR entries
  27.           /S   sort by file Size
  28.           /X   sort by eXtension
  29.  
  30. File criteria:
  31.  
  32.           /A   include Attributes, e.g. S=system, R=readonly, H=hidden
  33.           /H   include files with the Hidden attribute
  34.           /M   display only Modified files, i.e with Archive bit off
  35.           /P   include all Paths starting with the current directory
  36.  
  37. Display options:
  38.  
  39.           /C   Clear screen first, and after any "... more" prompts
  40.           /W   Wait after screen full, ask for any key after 20 lines displayed
  41.           /?   display usage syntax
  42.  
  43.  
  44.  
  45. Examples:
  46.            - Display all files, in filename order, on the current drive:
  47.  
  48.                 LDIR
  49.  
  50.            - Display all files in the subdirectory \TEST\PGMS on drive B:
  51.  
  52.                 LDIR B:\TEST\PGMS
  53.  
  54.            - Display only those files with an extension of .COM in the
  55.              current directory which is not a root directory:
  56.  
  57. |               LDIR *.COM
  58.  
  59.            - Display all modified files in all subdirectories on current drive
  60.              and place the output in the file called DIRLIST on drive C:
  61.  
  62.                 LDIR /M/P >C:DIRLIST
  63. -
  64.  
  65. Changing defaults:
  66.  
  67.         The default option is to sort by file name. You may use DEBUG
  68.         to permanently change this default. The bytes called FLAG1
  69.         and FLAG2 contain the option indicators.
  70.  
  71.         Field   Offset  Option  Hex and bit values
  72.         -----   ------  ------  -----------------------------------
  73. |       FLAG1   0111      A     01  .... ...1
  74.                           H     02  .... ..1.
  75.                           C     04  .... .1..
  76.                           D     08  .... 1...
  77.                           X     10  ...1 ....
  78.                           F     40  .1.. ....
  79.                           S     80  1... ....
  80.  
  81. |       FLAG2   0112      M     01  .... ...1
  82.                           W     02  .... ..1.
  83.                           P     20  ..1. ....
  84.  
  85.         For example, to change to defaults to /A/P/D/F/W:
  86.         FLAG1 becomes 01 + 08 + 40,  (A and D and F),
  87.         FLAG2 becomes 02 + 20 = 22,  (W and P).
  88.  
  89.                 DEBUG LDIR.COM
  90.                 -e 10d 49            (should originally be 40)
  91.                 -e 10e 22            (should originally be 00)
  92.                 -w
  93.                 -q
  94.  
  95.  
  96. Notes:  Written for the IBM PC using DOS 2.0 or later, including DOS 3.3.
  97.  
  98.         For private use only. May not be sold.
  99.  
  100.         Copyright 1986-89 by Vernon D. Buerg. All rights reserved.
  101.  
  102.              139 White Oak Circle
  103.              Petaluma, CA  94952
  104.              BBS: (707) 778-8944
  105.              CompuServe: 70007,1212
  106.  
  107. -
  108.  
  109. Version history:
  110.  
  111.            Version 2.3, August 10, 1985
  112.                 Correct some problems with path\filespec syntax
  113.                 Adds /M option to list modified files only
  114.  
  115.            Version 2.4, October 28, 1985
  116.                 Adds /W option to pause after 20 lines are displayed
  117.                 Speeds up screen displays but defeats redirection
  118.  
  119.            Version 2.5, November 5, 1985
  120.                 Minor changes for color displays
  121.  
  122.            Version 2.6, January 4, 1986
  123.                 By popular demand, ability for redirection and
  124.                 use of PrtSc restored at the price of slower displays.
  125.                 Problem changing current directory fixed.
  126.  
  127.            Version 2.7, February 15, 1986
  128.                 Minor corrections to command line syntax checking
  129.  
  130.            Version 2.8, April 22, 1986
  131.                 A special request version that does NO sorting of
  132.                 the directory entries. The directory is displayed
  133.                 in its original order. This is now the /N option.
  134.  
  135.            Version 2.9, May 12, 1986
  136.                 Corrects problem changing the current directory of
  137.                 the current drive when LDIR is used for a subdir on
  138.                 another drive.
  139.  
  140.            Version 3.0, June 4, 1986
  141.                 Corrects a problem when DEBUG is used to change
  142.                 the default option switches. The attribute mask
  143.                 used to read directories was not being updated.
  144.  
  145.            Version 3.1, Dec 28, 1986
  146.            Version 3.2, June 12, 1987
  147.                 Corrects problem specifying a filespec when in a
  148.                 subdirectory, e.g. LDIR *.ASM failed.
  149.  
  150.            Version 4.1, Jan 25, 1989
  151.                 Expands the number of file names from 1000 to an amount
  152.                 determined by available memory. Approximately 64 bytes
  153.                 per file name is required. In other words, 64K bytes of
  154.                 memory is required for each 1000 files.
  155.  
  156.