home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / dirking-3.00.lha / DirKING / Docs / UserManual.doc < prev    next >
Encoding:
Text File  |  1994-02-18  |  106.6 KB  |  2,369 lines

  1.                   __
  2.                  / ////
  3.           __    ///
  4.           \ \  ///          < < <<<  DirKING v3.00  >>> > >
  5.            \ \///
  6.             \__////        USER MANUAL - Release : 16-Feb-94
  7.  
  8.                 Copyright ©1990-1994 Chris P. Vandierendonck, [AmiSYS].
  9.  
  10.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11.        Copyright Notice
  12.        ~~~~~~~~~~~~~~~~
  13.          DirKING  is  released  as  SHAREWARE, not excluding the copyright
  14.          and all other rights  which  remain  with  the  author  Chris  P.
  15.          Vandierendonck.  The  program  and  files  included   with   this
  16.          distribution are not freely distributable. Shareware  means  that
  17.          you must register if you use the program.
  18.  
  19.          Prior  written  permission  from  the  author  is   required   to
  20.          distribute  DirKING  or to use  it  in  commercial  releases,  on
  21.          coverdisks or diskmagazines. When distributed, all files must  be
  22.          kept together, in the original unmodified form. 
  23.  
  24.          (AmigaDOS and Workbench are trademarks of Commodore Amiga Inc.)
  25.  
  26.        Disclaimer
  27.        ~~~~~~~~~~
  28.          DirKING  is  provided  "AS  IS",  WITHOUT  ANY  WARRANTY  to  its
  29.          quality, performance or fitness for a particular purpose.  In  no
  30.          event shall the author be liable or responsible to  the  user  or
  31.          any other person, for any kind of damage caused  by  the  use  of
  32.          this software.
  33.  
  34.          Registering   for   DirKING  is  necessary   to   ensure   future
  35.          development. More information on how to register can be found  in
  36.          this document or in the "Registration.doc".
  37.  
  38.          Registrations, suggestions, remarks and bug  reports  about  this
  39.          program can be send to the following address :
  40.  
  41.               Chris Vandierendonck
  42.               Koning Albertstraat 188
  43.             B-8210   VELDEGEM
  44.               BELGIUM
  45.  
  46.        Preface
  47.        ~~~~~~~
  48.          DirKING  is  a  feature  packed  directory  list  program,  which
  49.          overlaps the AmigaDOS commands List, Dir and  Info.  It  has  all
  50.          the features of the AmigaDOS commands,  but  also  includes  many
  51.          enhancements. The program supports different filters for  reading
  52.          a directory, allows complex sorting and  gives  full  control  on
  53.          the listing format.   
  54.  
  55.          DirKING is reentrant, so it can be made resident.
  56.  
  57.        System Requirements
  58.        ~~~~~~~~~~~~~~~~~~~
  59.          DirKING requires AmigaDOS v1.2 or higher.  DirKING fully supports
  60.          all AmifaDOS v2.x and v3.x innovations.
  61.  
  62.  
  63.                                         DirKING v3.0x User Manual - Page 1
  64.  
  65.        Shareware Registration
  66.        ~~~~~~~~~~~~~~~~~~~~~~
  67.          You can register in two ways:
  68.  
  69.          o Minimal registration.
  70.  
  71.            This includes: - the registered version of DirKING.
  72.                           - one free future update of DirKING.
  73.  
  74.            Sharewarefee : USD 12.00, GBP 6.00, DEM 15.00, BEF 300.
  75.  
  76.          o Full registration.
  77.  
  78.            This includes: - the registered version of DirKING.
  79.                           - one free future update of DirKING.
  80.                           - a laserprinted copy of the manual.
  81.                           - a reference card with all options and codes.
  82.  
  83.            Sharewarefee : USD 25.00, GBP 12.00, DEM 30.00, BEF 600.
  84.  
  85.        Payment
  86.        ~~~~~~~
  87.          o You can transfer the money in three ways :
  88.              - in cash (PAPER money ONLY) -> fast and cheap;
  89.              - by EuroCheck (only in Belgian Francs [BEF] !!);
  90.              - by (international) postal money order.
  91.            DO NOT SEND FOREIGN BANKCHECKS, since  it's  too  expensive  to
  92.            clear them.
  93.  
  94.          o All above mentioned amounts include P&P. So you don't  have  to
  95.            pay extra, wherever you live.
  96.  
  97.        Registration form
  98.        ~~~~~~~~~~~~~~~~~
  99.          o If possible, use a printout of the included 'RegForm'  file  to
  100.            register, since it makes registering (ordering) much easier.
  101.  
  102.          o From the moment I receive the  registration  (order)  form  and
  103.            the necessary payments, your order will be processed.
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.        Page 2 - DirKING v3.0x User Manual
  128.  
  129.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  130.                              USER MANUAL CONTENTS  
  131.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  132.          §1  Preliminary remarks. . . . . . . . . . . . . . . . . . .  4
  133.          §2  DirKING keyword and argument syntax. . . . . . . . . . .  5
  134.          §3  Directory scanning . . . . . . . . . . . . . . . . . . .  6
  135.              A. Specifying the directory path . . . . . . . . . . . .  6
  136.                 A.1. Normal directory paths . . . . . . . . . . . . .  6
  137.                      a. General use . . . . . . . . . . . . . . . . .  6
  138.                      b. Advanced use : recursive directory paths. . .  7
  139.                 A.2. Deep level pattern matching. . . . . . . . . . .  7
  140.                 A.3. Multiple and late assigns. . . . . . . . . . . .  8
  141.                 A.4. Linked directories . . . . . . . . . . . . . . .  8
  142.                 A.5. System requesters. . . . . . . . . . . . . . . .  9
  143.              B. Filtering directory information . . . . . . . . . . .  9
  144.                 B.1. Global filters . . . . . . . . . . . . . . . . .  9
  145.                 B.2. Filter options . . . . . . . . . . . . . . . . . 10
  146.                 B.3. File- and directoryname filtering. . . . . . . . 10
  147.                 B.4. Conditional date filters . . . . . . . . . . . . 12
  148.                 B.5. Comment filters. . . . . . . . . . . . . . . . . 13 
  149.                 B.6. Protectionflag filters . . . . . . . . . . . . . 13
  150.                 B.7. Datatype type filters. . . . . . . . . . . . . . 14
  151.              C. Hunting for particular files and directories. . . . . 14
  152.              D. Tracing the scanning process. . . . . . . . . . . . . 15
  153.          §4  Directory information. . . . . . . . . . . . . . . . . . 15
  154.              A. Volume (disk) information . . . . . . . . . . . . . . 16
  155.              B. Listing header/end information. . . . . . . . . . . . 17
  156.              C. File- and directory fields. . . . . . . . . . . . . . 19
  157.              D. Additional directory information. . . . . . . . . . . 20
  158.              E. Limiting listed directory levels. . . . . . . . . . . 21
  159.          §5  Directory sorting. . . . . . . . . . . . . . . . . . . . 21
  160.          §6  Listing formatting . . . . . . . . . . . . . . . . . . . 22
  161.              A. Listing table formatting. . . . . . . . . . . . . . . 22
  162.                 A.1. Setting the listing table width. . . . . . . . . 22
  163.                 A.2. Setting the list order of the table fields . . . 23 
  164.                 A.3. Formatting the listing table . . . . . . . . . . 24
  165.              B. Predefined listing table formats. . . . . . . . . . . 26
  166.              C. Free formatting and script generation (LFORMAT) . . . 26
  167.          §7  DirKING MULTI-mode (multiple directory scanning) . . . . 28
  168.          §8  Listing styles . . . . . . . . . . . . . . . . . . . . . 29
  169.              A. Information format. . . . . . . . . . . . . . . . . . 29
  170.              B. Listing print styles. . . . . . . . . . . . . . . . . 30
  171.          §9  Listing output redirection . . . . . . . . . . . . . . . 31
  172.          §10 Listing paging . . . . . . . . . . . . . . . . . . . . . 32
  173.          §11 Disk identification coding support . . . . . . . . . . . 34
  174.          §12 Environment variables. . . . . . . . . . . . . . . . . . 34
  175.          §13 DirKING program information. . . . . . . . . . . . . . . 35
  176.  
  177.          Appendix: DirKING keyword reference. . . . . . . . . . . . . 36
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.                                         DirKING v3.0x User Manual - Page 3
  192.  
  193.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  194.                               DIRKING USER MANUAL  
  195.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  196.              
  197.        §1 Preliminary remarks.
  198.           ~~~~~~~~~~~~~~~~~~~~
  199.           o Although DirKING can be used in the same way as  the  AmigaDOS
  200.             command  List,  the  real  power and flexibility of DirKING is
  201.             found in  the  additional  features.  For  the  more  advanced
  202.             features, you'll need to experiment a  bit,  but  you'll  soon
  203.             get the hang of it.
  204.  
  205.           o Like the AmigaDOS command  List,  DirKING  can  only  be  used
  206.             from a Shell  (CLI)  or  script.  DirKING  can  also  be  made
  207.             resident by  using  the  AmigaDOS  command  'Resident',  since
  208.             DirKING is reentrant.
  209.  
  210.           o From the DirKING usage prompt you'll  notice  that  all option
  211.             keywords are printed in upper  case.  This  doesn't  mean  you
  212.             have to type them as well in upper case, lower  case  will  do
  213.             since  DirKING  doesn't  parse  the  arguments   on   a   case
  214.             sensitive basis. The rule is that everything  may  be  printed
  215.             in lower case, unless explicitly stated otherwise. 
  216.  
  217.             Except for one argument, all arguments can  be  typed  on  the
  218.             command  line  in  any  order you want. This  means  that  for
  219.             example you could type in  the  directory  path  at  the  end.
  220.             DirKING  will  still   recognize   it. Some  options  however,
  221.             consist  of  two   separate   arguments, which  are  a keyword
  222.             argument and a  data-argument.  Naturally these arguments have
  223.             to be typed in that order. 
  224.  
  225.             The exception as mentioned earlier, is  the  LFORMAT argument.
  226.             This argument has always to be typed  last,  since  everything
  227.             after the keyword is regarded as being the format string.
  228.  
  229.             Due to the fact  that  the  arguments  can  be  typed  in  any
  230.             order, you must be careful not to override  a  previous  typed
  231.             option. For instance,  if  you  first  type  'INCL'  and  then
  232.             'EXCL',  the latter can alter the settings of the INCL  option
  233.             if you don't watch it. 
  234.             
  235.           o Some DirKING  options  need  a  data-argument in the form of a
  236.             string. In  case  this  string  should  contain  spaces,  then
  237.             you've to enclose it between double quotation marks.
  238.  
  239.           o DirKING also  supports  pattern matching. Under AmigaDOS v1.x,
  240.             only  a  limited  range  of   pattern   matching   codes   are
  241.             supported:
  242.  
  243.                 ? : matches just one character;
  244.                 # : the next character may occur zero or more times;
  245.                 ' : take the next character literally;
  246.                 * : although not supported by  AmigaDOS,  DirKING  accepts
  247.                     this equivalent  for  '#?'.  (This  wildcard  is  also
  248.                     used in all examples.)
  249.                 | : separator for using multiple patterns. 
  250.                 ( : may be used but is ignored.
  251.                 ) : may be used but is ignored.
  252.  
  253.  
  254.  
  255.        Page 4 - DirKING v3.0x User Manual
  256.  
  257.             Under AmigaDOS v2.0 and  later  the  full  range  of  AmigaDOS
  258.             patterns are automatically available. Refer to  your  AmigaDOS
  259.             manual for more information on how to use these patterns.
  260.  
  261.             NOTE: as  of  AmigaDOS  v2.0  and  later,  the  first  use  of
  262.                   DirKING makes the  wildstar  '*'  pattern  available  to
  263.                   the system.  So  other  commands  can  also  benefit  of
  264.                   this.
  265.  
  266.             IMPORTANT: when using  multiple  patterns,  always  place  the
  267.                        entire  pattern  between   parentheses,   otherwise
  268.                        you'll  get  an  error  under  AmigaDOS  v2.0   and
  269.                        later!
  270.  
  271.           o Throughout this  manual,  you'll  find  numerous  examples  to
  272.             demonstrate the use  of  DirKING's  features.  Those  examples
  273.             are always printed after  '|'s.  What  has  to  typed  on  the
  274.             command line,  is  enclosed  between  single  quotation  marks
  275.             ('). I didn't use double quotation marks ("), since  they  may
  276.             sometimes be part of a data-argument.
  277.  
  278.           o If you think it's a bit tedious to type  'DirKING'  each  time
  279.             to run the program, then it's probably better  that  you  save
  280.             DirKING under a short name, such as 'DK'.  
  281.  
  282.           o The program can always be interrupted with CTRL-C.
  283.  
  284.  
  285.        §2 DirKING options syntax.
  286.           ~~~~~~~~~~~~~~~~~~~~~~~
  287.           To get the usage prompt type 'dirking  ?',  something  like  the
  288.           following will appear:
  289.  
  290.        Usage: [PATH] [[F|D]<path|p>] [QUICK] [ALL] [TOLEVEL <#>] [DIRS]
  291.               [FILES] [HUNT [F|D]<pattern>]
  292.  
  293.        Filters: [READ [F|D]<pattern>]  [PASS [F|D]<pattern>]
  294.                 [SUB [F|D]<string>] [SINCE "[F|D]<[DOSdate] [time]>"] 
  295.                 [UPTO "[F|D]<[DOSdate] [time]>"] [FROMTO [F|D]<ch><ch>]
  296.                 [DATATYPE <pattern>] [FLAGS [F|D]<flags>]
  297.                 [COMMENT [F|D]<pattern>]
  298.  
  299.           Info: [INCL {nkribladtsocpfhvwygjmex}]
  300.                 [EXCL {nkribladtsocpfhvwygjmex}] [DIRINFO [BASE]]
  301.                 [DISKUSE] [LISTLEVELS <#>] [LOCVALS] [HEXVAL] [DATES]
  302.                 [BINFLAGS]
  303.  
  304.        Sorting: [FD|DF|MIX] [SORT {nkribladtcygme}] [NOSORT] [DESC]
  305.  
  306.         System: [NOREQ] [ASSLATE] [LINKDIRS] [DISKINFO] [FULLPATH]
  307.                 [MULTI] [NOENV]
  308.  
  309.        Listing: [HEAD {fdvpimtse}] [MAXHEAD] [BARELIST] [NOHEAD]
  310.                 [NOSTAT] [EOD] [NEWPAGE [[{cmhte}]<#>]]
  311.                 [DISKID <string>] [EXPAND] [MAXWIDTH <#>] 
  312.                 
  313.  
  314.         Output: [TRACE] [PRT] [TO <file>]  [PRTSTYLE {rdlbpes}] [TEXT]
  315.                 [SHOWLEVEL] [DIRSTYLE [r|i|b|y|f|a|e][r|i|b|y|f|a|e]]
  316.  
  317.  
  318.  
  319.                                         DirKING v3.0x User Manual - Page 5
  320.  
  321.         Format: [LISTF <0..4>] [SFORMAT <fmt>] [LISTORD <fmt>]   
  322.                 [DATEF <0..7>] [DFORMAT <fmt>] [TABLEFMT <fmt>]
  323.                 [TIMEF <0..3>] [TFORMAT <fmt>] [EXEC <file>] 
  324.                 [LFORMAT [<fmtstr>]]
  325.  
  326.  
  327.        §3 Directory scanning.
  328.           ~~~~~~~~~~~~~~~~~~~
  329.           The following arguments direct the way the  directory  is  read.
  330.           By default DirKING will only read the files and  directories  of
  331.           the current directory or the specified path. Thus DirKING  won't
  332.           descend in the sub-directories.
  333.  
  334.        A. Specifying the directory path.
  335.  
  336.        A.1. Normal directory paths. 
  337.  
  338.         » [F|D|B]<path|pattern>]
  339.  
  340.           a. General use.
  341.  
  342.           If you don't specify a file or directory path to scan, then  the
  343.           current directory will be read. 
  344.  
  345.              | current directory : 'Workbench:c' 
  346.              | 'DirKING' : will read the 'Workbench:c' directory
  347.  
  348.           If you do specify  a  path, then DirKING will obviously check if
  349.           this path exists, and if so, list its contents. This  path  must
  350.           be a valid AmigaDOS path, otherwise you'll cause a DOS error.
  351.  
  352.              | 'DirKING workbench:s' : will read 'Workbench:S'
  353.  
  354.           More than one path can be given to DirKING to read.
  355.  
  356.              | 'DirKING work:devs env: t:'
  357.  
  358.           It's also  possible  to  use  pattern matching. Patterns can not
  359.           only be given for  a  given  path,  but  also  for  the  current
  360.           directory.
  361.  
  362.           Normally this pattern  will  be  effective  on  both  files  and
  363.           directories, but you can alter this by using the  '[F]'  or  the
  364.           '[D]' option. To select one of these options, you  have  to  put
  365.           an 'F' or an 'D' at the beginning of the  path.  (See par. B.2.,
  366.           p.xx for more information on filter options.)
  367.  
  368.           IMPORTANT: this option code has always  to  be  typed  in  UPPER
  369.                      CASE and must be the first  character  of  the  path!
  370.                      Otherwise DirKING will interprete it  as  being  part
  371.                      of the path.
  372.  
  373.           The specified  patterns  will  be  effective  during  the  whole
  374.           scanning process. Thus not just for the scanned  directory,  but
  375.           for all further read  sub-directories.  If  you  only  want  the
  376.           pattern to be effective in one directory level,  then  you  must
  377.           use "deep level pattern matching", which is explained later.   
  378.             
  379.              | 'DirKING   workbench:*s*' : only  read  those   files   and
  380.              | directories which contain an 's' in their name
  381.  
  382.  
  383.        Page 6 - DirKING v3.0x User Manual
  384.  
  385.  
  386.              | 'DirKING   Fworkbench:(*a*|*b*)' : only  read  those  files
  387.              | which  contain  an  'a'  or  'b'  in   their   name.   (All
  388.              | directories will be accepted.
  389.  
  390.           b. Advanced use : recursive directory-paths.
  391.  
  392.           Recursive paths to a directory or a file always start  from  the
  393.           current directory. To climb up the directory tree (recurse)  you
  394.           have to make use of the '/' and ':' characters. 
  395.  
  396.           Using ':' goes back to the root  of  the  volume  on  which  the
  397.           current directory is situated.
  398.  
  399.             | current directory : 'Workbench:devs/keymaps'
  400.             | 'DirKING :' : DirKING use 'Workbench:' as the path.    
  401.  
  402.           The '/' character refers to a parent directory of  your  current
  403.           directory. The more '/'s you  use,  the  higher  you  climb  the
  404.           directory tree. How many '/'s you may use, depends  on  how  far
  405.           you're away from the root directory.  If  you  enter  more  '/'s
  406.           than there are parent directories, then DirKING  will  fail  and
  407.           output an invalid path error!
  408.  
  409.              | current directory : 'Workbench:devs/keymaps'
  410.              | 'DirKING /'   : read the 'Workbench:devs' directory
  411.              | 'DirKING //'  : read the 'Workbench:' directory
  412.              | 'DirKING ///' : error, no parent of 'Workbench:' exists
  413.  
  414.         » PATH
  415.  
  416.           The only  function  of  PATH  is  to  inform  DirKING  that  the
  417.           argument following is the path, and  not  an  argument  keyword.
  418.           PATH is only useful in case you want  to  scan  directory  which
  419.           has the same name as an argument keyword. If  PATH  wouldn't  be
  420.           used in such a situation, then  DirKING  would  interprete  your
  421.           path as an argument keyword, and not as the path  (the  AmigaDOS
  422.           commands 'List' and 'Dirs' make this mistake).
  423.            
  424.        A.2. Deep level pattern matching.
  425.  
  426.           The term 'deep level pattern matching' is the  only  way  I  can
  427.           describe the following feature. As mentioned  above,  this  kind
  428.           of pattern matching is more suited when DirKING has  to  descend
  429.           the directory tree. Since you can specify patterns for  upto  32
  430.           directory levels. The patterns are typed in the place where  you
  431.           would normally type the name of a directory in  the  path.  When
  432.           nothing is typed in this place then this means that  there's  no
  433.           pattern for that directory level. 
  434.  
  435.           Note: the  patterns  are  also  effective  on  both  files   and
  436.                 directories, unless  you  make  use  of  the  'F'  or  'D'
  437.                 options.
  438.  
  439.             | 'DirKING workbench:*s*/(p*|*x*)' will be interpreted as :
  440.             | path = 'workbench:', 
  441.             | pattern for level 0 = '*s*', for level 1 = 'p*' & '*x*'
  442.  
  443.             | 'DirKING workbench:s/p*' will be interpreted as :
  444.             | path = 'workbench:s', pattern for level 0 = 'p*'
  445.  
  446.  
  447.                                         DirKING v3.0x User Manual - Page 7
  448.  
  449.  
  450.             | 'DirKING work:/(p*|*x*)//(*c*|*y)' is interpreted as :
  451.             | path = 'work:', 
  452.             | pattern for level 0 = '' (no pattern),
  453.             |    "    for level 1 = 'p*' & '*x*',
  454.             |    "    for level 2 = '', (no pattern)
  455.             |    "    for level 3 = '*c*' & '*y',
  456.  
  457.           'Deep level pattern matching' can  also  be  used in conjunction
  458.           with  a  recursive  path. It then is very important  to  have  a
  459.           clear notion of what you enter, since DirKING has to use a  part
  460.           of your path string as the path to scan, and the rest of  it  as
  461.           the patterns.  The  recursive  indicators  ':'  and  '/'  should
  462.           always  be  at  the  front  of  the  path  string,  without  any
  463.           characters in between. From  the  moment  another  character  is
  464.           typed in, then from thereon the string will be used  as  a  path
  465.           (with or without deep level pattern matching).
  466.  
  467.              | 'DirKING :/*c*' means path = ':' or volume (root)
  468.              |                 level 0 pattern = '' (no pattern),
  469.              |                 level 1 pattern = '*c*'
  470.  
  471.              | current directory = 'Workbench:devs/keymaps'
  472.              | 'DirKING //*s*//*y*' means path = 'Workbench:'
  473.              |                      level 0 pattern = '*s*', 
  474.              |                      level 1 pattern = '' (no pattern), 
  475.              |                      level 2 pattern = '*y*' 
  476.  
  477.              | current directory = 'Workbench:devs/keymaps'
  478.              | 'DirKING //devs//*s*//*y*' means path = 'Workbench:devs'
  479.              |                      level 0 pattern = '' (no pattern), 
  480.              |                      level 1 pattern = '*s*', 
  481.              |                      level 2 pattern = '' (no pattern), 
  482.              |                      level 3 pattern = '*y*' 
  483.  
  484.           I know it gets very complicated,  but  the  only  way  to  fully
  485.           master this feature is to experiment a bit. The best way  to  do
  486.           this is by sending the listing of a large directory tree to  the
  487.           printer, and then starting to experiment on that directory  with
  488.           its listing in front of you.
  489.  
  490.        A.3. Multiple and late assigns.
  491.  
  492.           Under AmigaDOS v2.0 and  later,  DirKING  will  recognize  if  a
  493.           given  assignname  is  a  multiple  assign, thus an assign which
  494.           points to several directories. Each directory  of  the  multiple
  495.           assign will then be read and listed.
  496.  
  497.         » ASSLATE
  498.  
  499.           If a given assignname is a  late assign, thus an assign which is
  500.           only incorporated in the system when first  used,  DirKING  will
  501.           output an error. If you do want to read a late assign, then  use
  502.           the ASSLATE option to force the reading.
  503.  
  504.        A.4. Linked directories.
  505.  
  506.         » LINKDIRS
  507.  
  508.           By  default,  if  DirKING  encounters  a  directory  linked   to
  509.  
  510.  
  511.        Page 8 - DirKING v3.0x User Manual
  512.  
  513.           another, then it won't descend into this directory,  unless  you
  514.           use the LINKDIRS option. 
  515.  
  516.           Before descending down such a  linked  directory,  DirKING  will
  517.           examine if it  is  a  circular  linked  directory.  If  so,  the
  518.           directory will be ignored, thus avoiding infinite scanning!
  519.  
  520.  
  521.        A.5. System Requesters.
  522.  
  523.         » NOREQ
  524.  
  525.           If  you  have  given  a  path  with  a  non-existing  volume  or
  526.           devicename, then a system requester will prompt  you  to  insert
  527.           this disk. If you want to avoid such requesters, use  the  NOREQ
  528.           option. DirKING will exit immediately with an error  message  if
  529.           it can't scan your path.
  530.  
  531.  
  532.        B. Filtering directory information.
  533.  
  534.           Although you can filter what has to be read  by  using  patterns
  535.           in the path, most of the time you want more than that. For  this
  536.           purpose DirKING supports three kinds of powerful filters,  which
  537.           are explained below. 
  538.  
  539.        B.1. Global filters.
  540.  
  541.           As their name suggest, these filters have an overall control  on
  542.           the scanning  process.  With  most  you'll  be  familiar,  since
  543.           they're also present in the AmigaDOS directory list commands.
  544.  
  545.         » ALL
  546.  
  547.           By default DirKING will only read one directory level (which  is
  548.           the Shell's current directory or a specified path). If  you  use
  549.           ALL then  DirKING  will  descend  into  all  sub-directories  it
  550.           finds, until no more are found. 
  551.  
  552.             | 'DirKING work: ALL' : the  whole  'work:'   disk   will   be
  553.             |                       scanned.
  554.  
  555.         » DIRS
  556.  
  557.           At first glance one would assume that  DirKING  will  only  read
  558.           directories.  In  a  way  this  is  true,  but  it's  better  to
  559.           interprete  in  the  way  that  DirKING  is  allowed to  include
  560.           directories. (Because using 'FILES' in conjunction with  'DIRS',
  561.           will also include files.)
  562.  
  563.           The 'DIRS' option in conjunction with 'ALL' is  a  good  way  to
  564.           get a clear view of the  directory  tree  (since  no  files  are
  565.           listed).
  566.  
  567.         » FILES
  568.  
  569.           This DirKING option acts the same as DIRS, but  now  for  files.
  570.           If this option is used, then DirKING will only read  files,  and
  571.           ignore all directories. This means that DirKING will  only  read
  572.           one directory level, and that the options  "ALL"  and  "TOLEVEL"
  573.  
  574.  
  575.                                         DirKING v3.0x User Manual - Page 9
  576.  
  577.           won't work.
  578.  
  579.           Exception: the above isn't true for  the  LFORMAT  option.  Here
  580.                      the FILES  option  means  that  only  files  will  be
  581.                      listed.  If   directories   are   encountered,   then
  582.                      DirKING will enter them if  the  "ALL"  or  "TOLEVEL"
  583.                      option is used.
  584.  
  585.         » TOLEVEL <#>
  586.  
  587.           This option  works  in  the  same  way  as  'ALL',  except  that
  588.           'TOLEVEL' specifies how many directory levels  may be scanned. I
  589.           speak of 'may' because it doesn't matter if  the  TOLEVEL  value
  590.           is greater than the actual number of directory levels present. 
  591.  
  592.             | Assume current directory is 'Workbench:Devs'
  593.             | 'DirKING  TOLEVEL   0' : will  only  read  entries  in  this
  594.             | directory  level,  without  descending  down  the  directory
  595.             | tree.
  596.             | 'DirKING  TOLEVEL  1' : does the same, but  will  also  read
  597.             | the 'KeyMaps' and 'Printers' directories.
  598.  
  599.        B.2. Filter options. -> F|D|B 
  600.  
  601.           All  the  following  filters  (including  the  conditional  date
  602.           filters) support the use of 'F', 'D' and 'B'  (or  '')  options.
  603.           First I'd like to  remind  you  of  the  meaning  of  the  three
  604.           options :
  605.  
  606.             - ''  : if you don't enter an option code, then  DirKING  will
  607.                     use the filter on both files and directories;
  608.             - 'F' : the filter will only be used for files;
  609.             - 'D' : the filter will only be used for directories.
  610.             - 'B' : in case the filter should begin with  an  'F',  a  'D'
  611.                     or a 'B', then to make sure that the  filter  is  used
  612.                     on both files and directories, one must use  this  'B'
  613.                     option.
  614.  
  615.           NOTE: the option code must always be typed in  UPPER  CASE,  and
  616.                 must always be the first character of the data-argument!
  617.  
  618.           The use of these options with filters, add another dimension  to
  619.           that filter, since you can use the filter upto  three  times  on
  620.           the command line, provided  that  each  filter  argument  has  a
  621.           different option. In other words you  can  enter  a  filter  for
  622.           both files and directories, one for files only, and another  for
  623.           directories.
  624.  
  625.        B.3. File- and directoryname filtering.
  626.  
  627.           The  following  filters  operate  on  the  name  of  files   and
  628.           directories, thus presenting more powerful  filtering  than  the
  629.           previous filter type. 
  630.  
  631.         » READ [F|D|B]<pattern>
  632.  
  633.           This argument instructs DirKING to  only  read  (include)  those
  634.           directory entries (files and/or  directories)  which  match  the
  635.           given  pattern(s).  An  unlimited  number  of  patterns  can  be
  636.  
  637.  
  638.  
  639.        Page 10 - DirKING v3.0x User Manual
  640.  
  641.           specified. The vertical  bar  "|"  is  used  to  separate  these
  642.           patterns. (If one of the patterns should  contain  spaces,  then
  643.           you must  enclose  the  whole  data-argument  between  quotation
  644.           marks.)
  645.  
  646.             | 'READ *s*' : include only those  directories  and  files  if
  647.             |              their name includes 's'.
  648.  
  649.             | 'READ (*s*|*a*)' : include  only   those   directories   and
  650.             |                    files if their name either  includes  's'
  651.             |                    or 'a'.
  652.  
  653.             | 'READ F*a* READ D*b* READ *c*' :
  654.             | Files are only included if their name matches the  '*a*'  or
  655.             | the '*c*' patterns. Directories are only included  if  their
  656.             | name matches the '*b*' or the '*c*' patterns. 
  657.  
  658.             | 'READ F(*a*|*b*|*c*)' :
  659.             | Files are only included if their name  matches  one  of  the
  660.             | three specifies patterns (*a*, *b*,  *c*).  All  directories
  661.             | will be included, since  this  argument  is  only  effective
  662.             | for files!
  663.  
  664.         » PASS [F|D|B]<pattern>
  665.  
  666.           The PASS argument works in the same way as  the  READ  argument,
  667.           except that  all directory entries  (files  and/or  directories)
  668.           that match the given pattern(s) are ignored (excluded).
  669.  
  670.             | 'PASS (*s*|*a*)' : ignore those  directories  and  files  if
  671.             |                    their name either includes 's' or 'a'.
  672.  
  673.             | 'PASS F*a* PASS D*b* PASS *c*' :
  674.             | Files are ignored  if their name matches the  '*a*'  or  the
  675.             | '*c*'  patterns.  Directories  are  ignored  if  their  name
  676.             | matches the '*b*' or the '*c*' patterns. 
  677.  
  678.         » SUB [F|D|B]<string>
  679.  
  680.           In order to be included in the listing, the names of  the  files
  681.           and/or directories must contain the specified string(s).
  682.  
  683.             | 'SUB s|a' : include only  those  directories  and  files  if
  684.             |             their name either contains 's' or 'a'.
  685.  
  686.             | 'SUB Fa|d SUB Db SUB c' :
  687.             | Files are only included if their name contains 'a',  'd'  or
  688.             | 'c'. Directories are only included if  their  name  contains
  689.             | 'b' or 'c'. 
  690.  
  691.         » FROMTO [F|D|B]<ch><ch>
  692.  
  693.           The 'FROMTO' option enables  filtering on the first character of
  694.           the name of  files  and/or  directories.  Since  AmigaDOS  names
  695.           aren't handled case sensitive, typing 'A' is the same as  typing
  696.           'a'.
  697.  
  698.           The <ch>aracter is only valid if it's in  the  range  [0..9]  or
  699.           [a..z].
  700.  
  701.  
  702.  
  703.                                        DirKING v3.0x User Manual - Page 11
  704.  
  705.             | 'FROMTO ad' : only include directories  and  files,  if  the
  706.             | first character of their  name  is  equal  or  greater  than
  707.             | 'a', but not greater than 'd'.
  708.  
  709.             | 'FROMTO 5a' : only include directories  and  files,  if  the
  710.             | first character of their  name  is  equal  or  greater  than
  711.             | '5', but not greater than 'a'.
  712.  
  713.             | 'FROMTO  Fad' : only include files if  the  first  character
  714.             | of their name is equal or greater than 'a' but  not  greater
  715.             | than 'd'. All  directories  will  be  included,  since  this
  716.             | filter doesn't apply to them.
  717.  
  718.           If  the  second  <ch>aracter   is   smaller   than   the   first
  719.           <ch>aracter, then this second <ch>aracter will  be  replaced  by
  720.           the last valid character in the range.
  721.  
  722.             | 'FROMTO sa' : will be interpreted as 'FROM s TO z'.
  723.  
  724.        B.4. Conditional date filters.
  725.  
  726.           Conditional  dates  provide  filters for the date- and timestamp
  727.           of a file or directory. The syntax of the conditional  date  can
  728.           be one of the following :
  729.  
  730.            1° DOSdate : only a datestamp is given, in the  usual  AmigaDOS
  731.                         format, which is DD-MMM-YY  (e.g.  14-aug-92).  If
  732.                         the date is within the last week  of  the  current
  733.                         date, then you  may  use  the  actual  dayname  of
  734.                         that date (Sunday...Saturday); you  may  also  use
  735.                         'Today'  and  'Yesterday'.  The  dates  after  the
  736.                         current date can be  replaced  by  'Tomorrow'  and
  737.                         'Future' (represents the day  after  tomorrow  and
  738.                         later).
  739.  
  740.            2° Time : only a timestamp is  given,  in  the  usual  AmigaDOS
  741.                      format,  which  is  HH:MM:SS  (e.g.  18:15:42).  (The
  742.                      seconds  can  be  omitted,  in  which  case  '00'  is
  743.                      used).
  744.  
  745.            3° DOSdate & time : a date- and  timestamp  is  given,  in  the
  746.                                above   specified   formats.   (Note   that
  747.                                you  can   also   enter   the   date-   and
  748.                                timestamp in reverse order.)
  749.  
  750.            4° Day offset : instead  of  specifying  a  certain  date,  one
  751.                            could define a date by  giving  the  number  of
  752.                            days before, or  after  the  current  day.  The
  753.                            date is then given as a  negative  or  positive
  754.                            value. A simple table makes this clear: 
  755.  
  756.                             ... -3  -2  -1   0   1   2   3 ...
  757.                            ------|---|---|---|---|---|---|-----> date
  758.                                          | today |
  759.                                    yesterday   tomorrow
  760.  
  761.            5° Day offset & time : similar in use as the third syntax.
  762.  
  763.  
  764.           REMARK: the date- and timestamp  must  be  typed  in  the  above
  765.  
  766.  
  767.        Page 12 - DirKING v3.0x User Manual
  768.  
  769.                   mentioned formats,  otherwise  DirKING  won't  recognize
  770.                   your date/timestamp!
  771.  
  772.         » SINCE "[F|D|B]<[DOSdate] [time]>"
  773.  
  774.           Using SINCE means  that  only  those  directory  entries  (files
  775.           and/or directories) will  be  included  if  their  date-  and/or
  776.           timestamp is equal or later than the given conditional date. 
  777.  
  778.             | 'SINCE 14-aug-92' : include  only  files   and   directories
  779.             | which were created on or after 14 August 1992.
  780.  
  781.             | 'SINCE 14:30:00' : include  only   files   and   directories
  782.             | which were created on or after 14:30:00.
  783.  
  784.             | 'SINCE "14-aug-92 14:30:00"' : include   only   files    and
  785.             | directories  which  were  created  on  or  after  14-Aug-92,
  786.             | 14:30:00.
  787.  
  788.             | Assume that today is 16-Aug-92
  789.             | 'SINCE   yesterday' : include  only  files  and  directories
  790.             | which were created on or after 15-Aug-92.
  791.  
  792.             | 'SINCE   Ftoday' : include  only  files  that  were  created
  793.             | today or later. All  directories  found  will  be  included,
  794.             | since this filter is only effective for files.
  795.           
  796.         » UPTO "[F|D|B]<[DOSdate] [time]>"
  797.  
  798.           Everything  said  for  SINCE  applies  for   UPTO,   with   this
  799.           difference that now only files/directories will be  included  if
  800.           their  date/timestamp  is  equal or earlier than the conditional
  801.           date/timestamp.
  802.  
  803.        B.5. Comment filters.
  804.  
  805.         » COMMENT [F|D|B]<pattern>
  806.  
  807.           In the same way as you would filter on a file- or  dirname,  one
  808.           can specify a filter for file- and dircomments.  If  no  comment
  809.           is present then this directory entry is ignored.
  810.  
  811.             | 'DirKING RAM: ALL COMMENT F*1994*' :  this  will  only  list
  812.             | files which have '1994' in their comment.
  813.  
  814.  
  815.        B.6. Protectionflag filters.
  816.  
  817.         » FLAGS [F|D|B]<flags>
  818.  
  819.           DirKING makes it also possible to filter files  and  directories
  820.           on their attributes (protection flags). The filter works on  the
  821.           visual representation of the flags, not on the real settings  as
  822.           programmers use them!
  823.  
  824.           The flags filters uses negative and positive  flags.  The  first
  825.           means that these flags may not be present in  the  flagset,  the
  826.           latter signifies the opposite. 
  827.  
  828.  
  829.  
  830.  
  831.                                        DirKING v3.0x User Manual - Page 13
  832.  
  833.           As a reminder, the flagnames used by AmigaDOS are:
  834.  
  835.             - h : hidden        - r : readable 
  836.             - s : script        - w : writable   
  837.             - p : pure          - e : executable  
  838.             - a : archived      - d : deletable 
  839.  
  840.           The filterflags can be given in any order, where negative  flags
  841.           are preceded by a '-' sign, and positive flags by a '+' sign.
  842.  
  843.             | 'FLAGS +sr-e' : '-s--rw-d' will match, '-s--rwed' not!
  844.             | 'FLAGS -p+rwd' : '---arwed' will match, '--parwed' not! 
  845.  
  846.  
  847.        B.7. Datatype type filters.
  848.  
  849.         » DATATYPE <pattern>
  850.  
  851.           Under AmigaDOS v3.0  and  later,  it's  possible  to  specify  a
  852.           filter for the datatype type of a file. Since datatype are  only
  853.           useful with files, the filter only works on files.  The  pattern
  854.           is a normal string pattern.
  855.  
  856.             | 'DATATYPE *i*' will accept only files with a  datatype  type
  857.             | which includes a 'i'. E.g. 'IFF, 'ASCII', etc...
  858.  
  859.  
  860.        C. Hunting for particular files and directories.
  861.  
  862.         » HUNT [F|D|B]<pattern>
  863.  
  864.           When you want to find out where  certain  files  or  directories
  865.           are in a directory, then you  must  use  the  HUNT  option.  The
  866.           output is given in a  LFORMAT  way.  By  default  the  following
  867.           format is used: "%F%N", thus the full path and name is given.
  868.  
  869.             | 'DirKING RAM: HUNT *i*' : this will look for all  files  and
  870.             | dirs in your RamDisk  which  have  an  'i'  in  their  name.
  871.             | Example output:
  872.             |
  873.             | RAM:Disk.info
  874.             | RAM:CLIPS
  875.             | RAM:ENV/Kickstart
  876.             | RAM:ENV/Sys/icontrol.prefs
  877.             | RAM:ENV/Sys/input.prefs
  878.             | RAM:ENV/Sys/printer.prefs
  879.             | RAM:ENV/Sys/wbconfig.prefs
  880.  
  881.           If you want to change this output format, then also use  LFORMAT
  882.           when calling DirKING.
  883.  
  884.           Remark: the HUNT automatically uses the ALL option.  Should  you
  885.                   want to avoid that DirKING  descends  too  deep  into  a
  886.                   directory, then define a TOLEVEL value.
  887.  
  888.           Note: the HUNT option also supports the F|D|B filter options!
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.        Page 14 - DirKING v3.0x User Manual
  896.  
  897.        D. Tracing the scanning process. 
  898.  
  899.         » TRACE
  900.  
  901.           This  is  a  rather  exotic feature of DirKING. TRACE is used to
  902.           monitor the scanning process. This option  is  extremely  useful
  903.           when scanning large directories, and you  want  to  know  what's
  904.           going on. The information printed consists of the following :
  905.  
  906.             - the currently scanned path;
  907.             - the number of directories included  so  far,  and  the  last
  908.               one found;
  909.             - the number of files  included  so  far,  and  the  last  one
  910.               found;
  911.  
  912.           Note:  this  feature  will  slightly  slow  down  the   scanning
  913.                  process, but once you used  it,  you'll  be  addicted  to
  914.                  it.
  915.  
  916.  
  917.  
  918.        §4 Directory information.
  919.           ~~~~~~~~~~~~~~~~~~~~~~
  920.           By  default, DirKING will print the listing in roughly the  same
  921.           format as the AmigaDOS 'List' command, but with more  style  and
  922.           information. First of all DirKING will print  the  scanned  path
  923.           and the date/timestamp of the listing. Then the  actual  listing
  924.           is printed in a table form, with a title  line  indicating  what
  925.           all the printed fields mean  (the  List  command  doesn't  print
  926.           such a title line!). After  the  listing  has  been  printed,  a
  927.           statistic line will be  printed,  which  states  the  number  of
  928.           files and directories found, the  amount  of  bytes  and  blocks
  929.           used by the files and the number of bytes free on the volume.
  930.  
  931.           This default listing format can be altered  by  the  options  as
  932.           described below. But for good understanding, it's  necessary  to
  933.           explain some terms used :
  934.  
  935.             » DirectoryEntry : refers to files and directories.
  936.             » Field          : each separate information  of  a  directory
  937.                                entry    (e.g.    name,    blocks     used,
  938.                                datestamp,...).
  939.             » Listing        : what  DirKING   prints   on   the   scanned
  940.                                directory   (consists   of   the    listing
  941.                                header,  the   actual   listing   and   the
  942.                                listing end)
  943.             » ListingHeader  : a block of information  about  the  scanned
  944.                                directory (and volume)
  945.             » ActualListing  : that section of the listing,  only  holding
  946.                                the  directory   entries,   including   the
  947.                                title line (which  states  the  meaning  of
  948.                                the different fields)
  949.             » ListingEnd     : the block of  information  printed  at  the
  950.                                end of the listing (thus after  the  actual
  951.                                listing).
  952.             » DiskInfoBlock  : a block of  extensive  information  on  the
  953.                                volume  that  was  accessed  to  read   the
  954.                                directory
  955.  
  956.  
  957.  
  958.  
  959.                                        DirKING v3.0x User Manual - Page 15
  960.  
  961.        A. Volume (disk) information.
  962.  
  963.         » DISKINFO
  964.  
  965.           The DISKINFO option can be compared with  the  AmigaDOS  command
  966.           'Info',  except  that  it  gives  more  information  than   this
  967.           command. The information is printed in  a  block  consisting  of
  968.           three lines of information : 
  969.  
  970.           Line_1 : - 'Volume'     : volume name
  971.                    - 'Created'    : date/time stamp of creation
  972.  
  973.           Line_2 : - 'DOSType'    : DOS type of the disk:
  974.                                      - OFS   : OldFilingSystem
  975.                                      - FFS   : FastFilingSystem
  976.                                      - KICK  : KICKstart disk
  977.                                      - MSDOS : MS-DOS disk
  978.                                      - I_OFS : International OFS
  979.                                      - I_FFS : International FFS
  980.                                      - DC_OFS: Directory Caching OFS
  981.                                      - DC_FFS: directory-Caching FFS
  982.                    - 'DiskStatus' : status  of   the   disk   (Read/Write,
  983.                                     ReadOnly, Validating)
  984.                    - 'Errors'     : number of soft-errors on the disk
  985.                    - 'RootKey'    : block number of the root directory
  986.                    - 'DiskSize'   : number of blocks on the disk
  987.                    - 'BlockSize'  : number of bytes in a block
  988.                    - 'BlocksFree' : number of blocks free on the disk
  989.                    - 'BytesFree'  : number of bytes free on the disk
  990.                    - 'Full'       : disk full percentage         
  991.  
  992.           Line_3 : - 'oldest datestamp' : not filled
  993.                    - 'latest datestamp' : not filled
  994.                    - 'TotalFiles' : not filled
  995.                    - 'TotalDirs'  : not filled
  996.                    - 'Links'      : not filled
  997.                    - 'BlocksUsed' : number of blocks used on the disk
  998.                    - 'BytesUsed'  : number of bytes used on the disk
  999.  
  1000.           Note: some fields of  the  'DiskInfoBlock'  aren't  filled  when
  1001.                 DISKINFO is used. Only when the volume has  been  scanned,
  1002.                 will the items be filled. Using 'HEAD  vpi'  or  'MAXHEAD'
  1003.                 will also show this diskinfoblock.
  1004.  
  1005.           Tip: to get the same  result  as  DISKINFO,  but  with  all  the
  1006.                items filled, then you must the following startup:
  1007.  
  1008.             | 'DirKING RAM: ALL HEAD vk'
  1009.             | Note that the RamDisk has been fully  scanned,  so  on  e.g.
  1010.             | 'DF0:' it would take a bit longer to see the result.  
  1011.  
  1012.           IMPORTANT: when 'DISKINFO'  is  used,  then  all  other  DirKING
  1013.                      options  will  be  ignored,  except  for   the   path
  1014.                      argument (DirKING must know  from  which  volume  you
  1015.                      want  information).  Since  DirKING  doesn't  read  a
  1016.                      directory,   the   volume   information   is    given
  1017.                      instantly.
  1018.            
  1019.             | 'DirKING DISKINFO' : gives information about the  volume  on
  1020.             |                      which   the   current   directory    is
  1021.  
  1022.  
  1023.        Page 16 - DirKING v3.0x User Manual
  1024.  
  1025.             |                      situated.
  1026.  
  1027.             | 'DirKING DF1: DISKINFO' : gives  information  on  the   disk
  1028.             |                           which   is   inserted   in   drive
  1029.             |                           'DF1:'.
  1030.  
  1031.         » DISKUSE
  1032.  
  1033.           By default the  'blocksUsed'  and  'bytesUsed'  infofields  show
  1034.           how many blocks and bytes are used by the  files  found  in  the
  1035.           scanned directory. This however  isn't  the  exact value of used
  1036.           diskspace. This  is  where  the  new  option  DISKUSE  makes  an
  1037.           entry. 
  1038.  
  1039.           When this option is used,  then  the 'blocksUsed' infofield will
  1040.           show  the  exact  number  of  blocks  used  by  the  files   and
  1041.           directories in the  scanned  directory.  In  other  words,  this
  1042.           value  also includes the blocks used by DOS  (header  blocks) to
  1043.           maintain the  directory  tree.  The 'bytesUsed' is then equal to
  1044.           the number of  blocks  used,  multiplied  by  the blocksize. Now
  1045.           DirKING gives the same value as the 'List' command.
  1046.           
  1047.           NOTE: the  above  mentioned  infofields  can  be  found  in  the
  1048.                 listing header with the DiskInfoBlock or  in  the  listing
  1049.                 end with the statistic line.
  1050.  
  1051.        B. Listing header/end information.
  1052.  
  1053.           By  default DirKING  will  use  a  listing  header  stating  the
  1054.           following information : scanned  directory  (using  the  correct
  1055.           upper/lower  case  notation)  and  the  date/timestamp  of   the
  1056.           listing. The listing end consists of a  statistic  line,  giving
  1057.           the number of files  and  directories  found,  number  of  links
  1058.           found and the number of bytes and blocks used by them.
  1059.  
  1060.           With the following options, you can alter what is printed  as  a
  1061.           listing header an as a listing end.
  1062.  
  1063.         » FULLPATH
  1064.  
  1065.           When  you  normally enter a path to a directory or file,  you'll
  1066.           use lower case characters (since AmigaDOS isn't  case  sensitive
  1067.           on this subject). However, DirKING will search for  the  correct
  1068.           upper/lower case notation of that path, before  printing  it  in
  1069.           the listing. 
  1070.  
  1071.           By  default, DirKING will only  correct  the  path  that  you've
  1072.           specified. It won't look for the correct path from the root  on.
  1073.           Sometimes you'll want to know the  correct  path  starting  from
  1074.           the volume-root. You can do this by using  FULLPATH. This option
  1075.           instructs DirKING to construct the  path  from  the  volume-root
  1076.           upto the directory or file specified.
  1077.  
  1078.             | Assume we're scanning your Workbench (system) disk.
  1079.             | 'DirKING devs:' : DirKING  will   print   'DEVS:'   as   the
  1080.             |                   scanned path.
  1081.             | 'DirKING devs: FULLPATH' : 'Workbench:Devs'  is  printed  as
  1082.             |                             the scanned path.
  1083.  
  1084.             | Assume current directory is 'Workbench:Devs'.
  1085.  
  1086.  
  1087.                                        DirKING v3.0x User Manual - Page 17
  1088.  
  1089.             |  'DirKING' : (read current directory) '' is printed  as  the
  1090.             |             scanned path.
  1091.             | 'DirKING  FULLPATH' : 'Workbench:Devs'  is  printed  as  the
  1092.             |                       scanned path.
  1093.  
  1094.             | Assume current directory is 'Workbench:Devs'
  1095.             | 'DirKING  keymaps' : will read the  'Workbench:Devs/Keymaps'
  1096.             |                     directory,  where  DirKING  will   print
  1097.             |                     'Keymaps' as the scanned path.
  1098.             | 'DirKING keymaps FULLPATH' : reads the same  directory,  but
  1099.             |                              'Workbench:Devs/Keymaps'   will
  1100.             |                              be printed as the path read.
  1101.  
  1102.             | Assume your Workbench disk in drive 'DF1:'.
  1103.             | 'DirKING df1:' : 'DF1:' is printed as the scanned path.
  1104.             | 'DirKING df1: FULLPATH' : 'Workbench:'  is  printed  as  the
  1105.             |                           scanned path.
  1106.           
  1107.         » HEAD {mnbdvpktise}
  1108.  
  1109.           The default listing header and listing  end  have  already  been
  1110.           explained at the beginning of '§4B'. The HEAD option now  allows
  1111.           you to specify what information you want in the  listing  header
  1112.           and the listing end.
  1113.  
  1114.           Note: although  the  argument  keyword  is  called  'HEAD',   it
  1115.                 defines both the listing header and listing end!
  1116.  
  1117.           To define which listing header and listing  end  you  want,  you
  1118.           have to use the following codes (the  codes  are  given  in  the
  1119.           order they'll appear in the header) :
  1120.  
  1121.           > Predefined settings
  1122.              - M : equals 'HEAD dvpkti'
  1123.              - N : equals 'HEAD di'
  1124.              - B : equals 'HEAD i'
  1125.  
  1126.            > Listing head codes
  1127.              - D : show date of scan
  1128.              - V : show volumename and creationdate
  1129.              - P : show scanned path
  1130.              - K : show diskinfoblock (see DISKINFO)
  1131.              - T : show listing item titles
  1132.              - I : show listing items
  1133.  
  1134.           > Listing end codes
  1135.              - S : show end statistics
  1136.              - E : show end-of-dir message at the end of the listing.
  1137.  
  1138.         » MAXHEAD
  1139.  
  1140.           This argument is equal to using 'HEAD M' or 'HEAD dvpkti'.
  1141.  
  1142.         » NOHEAD
  1143.  
  1144.           This argument is equal to using 'HEAD N' or 'HEAD di'. 
  1145.  
  1146.         » BARELIST
  1147.  
  1148.           This argument is equal to using 'HEAD B' or 'HEAD i'.
  1149.  
  1150.  
  1151.        Page 18 - DirKING v3.0x User Manual
  1152.  
  1153.  
  1154.         » NOSTAT
  1155.  
  1156.           Prevents  that  the  statistic line is printed at the end of the
  1157.           listing. This option will primarily  be  used  to  suppress  the
  1158.           default listing end (which is this statistic line).
  1159.  
  1160.         » EOD
  1161.  
  1162.           Lets DirKING print the '~~~~  End  of  Directory  ~~~~'  message
  1163.           after the actual listing. 
  1164.  
  1165.        C. File- and directory fields.
  1166.  
  1167.           The following arguments  define  which  fields  of  a  directory
  1168.           entry are printed. By default DirKING will print  the  following
  1169.           fields: NRIBLADT. Above the table, the name of  the  fields  are
  1170.           given. 
  1171.  
  1172.         » QUICK
  1173.  
  1174.           If 'QUICK' is used then only the file/directory  name  field  is
  1175.           printed, provided this option isn't overriden by  other  options
  1176.           such as LFORMAT or TABLEFMT.
  1177.  
  1178.         » INCL {nkribladtsocpfhvwygjmex}
  1179.  
  1180.           The INCL option is used to specify  which  fields  you  want  to
  1181.           have listed. The following field codes are supported :
  1182.  
  1183.             - X : the equivalent of 'INCL nribladt' which is  the  default
  1184.                   setting
  1185.             - N : list file/dir-name
  1186.             - K : list diskkey
  1187.             - R : number of sub-dirs in a dir (prints '-' with files)
  1188.             - I : number of files in a dir (prints '-' with files)
  1189.             - B : blocks used by a file (prints 'Dir' with dirs)
  1190.             - L : bytes used by a file (prints 'Dir' with dirs)
  1191.             - A : list file/dir attributes (protectionflags)
  1192.                   The first flag reflects if it's a file ('f')  or  a  dir
  1193.                   ('d'). The second  flag  reflects  if  it's  a  hardlink
  1194.                   ('H'), a softlink ('S') or a pipe ('P'), or  nothing  of
  1195.                   the above ('-').  The  rest  are  the  usual  protection
  1196.                   flags.        
  1197.             - D : list file/dir datestamp
  1198.             - T : list file/dir timestamp
  1199.             - S : file/dir DOS datestamp (days,mins,ticks)
  1200.             - O : show comment, or  empty  string  when  none  is  present
  1201.                   (this  comment  is  shown  in  its  own  column  in  the
  1202.                   listing table)
  1203.             - C : show comment if on is present  (this  comment  is  shown
  1204.                   on a line of its own, thus not in the listing table)
  1205.             - P : show the file/dir path relative to the scanned path
  1206.             - F : show the file/dir path, including the scanned path
  1207.             - H : show file and directory links
  1208.                   For now only hardlinks are supported.
  1209.             - V : list datatype descriptor
  1210.             - W : list datatype basename
  1211.             - Y : list datatype type
  1212.             - G : list datatype group ID
  1213.  
  1214.  
  1215.                                        DirKING v3.0x User Manual - Page 19
  1216.  
  1217.             - J : list datatype ID
  1218.             - M : list naked file/dirname (without last extension)
  1219.             - E : list the last file/dirname extension
  1220.  
  1221.             | 'INCL nd' : only print the name and datestamp fields.
  1222.  
  1223.             | 'INCL n' : only print name field (equivalent of 'QUICK').
  1224.  
  1225.             | 'INCL nribladt' : is  the  same  as  the   default   setting
  1226.             |                   (explained earlier).
  1227.  
  1228.         » EXCL {nkribladtsocpfhvwygjmex}
  1229.  
  1230.           The 'EXCL' option is used to  specify  which  fields  you  don't
  1231.           want to have listed. 'EXCL' is only useful for excluding  fields
  1232.           from the default  settings  or  environment  variable  settings,
  1233.           because if you've  used  'INCL'  earlier,  then  you've  already
  1234.           specified which fields you want. 
  1235.  
  1236.             | 'EXCL  x' : you'll get an empty listing, only  the  listing
  1237.             |            header and listing end will be printed.
  1238.  
  1239.             | 'EXCL kbladt' : is the same as using  the  QUICK  argument,
  1240.             |                 in other words, only the name of the  files
  1241.             |                 and directories is printed.
  1242.  
  1243.         » Field titles
  1244.  
  1245.           The following titles are given for the fields:
  1246.  
  1247.             field   title
  1248.             -----   ----------------------
  1249.               N     F i l e N a m e
  1250.               K     Key
  1251.               R     Dirs
  1252.               I     Files
  1253.               B     Blocks
  1254.               L     Bytes
  1255.               A     Flags
  1256.               D     Date
  1257.               T     Time
  1258.               S     DateStamp
  1259.               O     Comment 
  1260.               P     FilePath
  1261.               F     ScanPath
  1262.               H     FileLink
  1263.               V     dtDescription
  1264.               W     dtBaseName
  1265.               Y     dtType
  1266.               G     dtGroup
  1267.               J     dtID
  1268.               M     N a m e
  1269.               E     Suffix
  1270.  
  1271.        D. Additional directory information.
  1272.  
  1273.         » DIRINFO [BASE]
  1274.  
  1275.           As you've seen from the default  listing,  there're  two  fields
  1276.           called "Dirs" and "Files", they state  the  number  of  sub-dirs
  1277.  
  1278.  
  1279.        Page 20 - DirKING v3.0x User Manual
  1280.  
  1281.           and the number of files that were found in a dir.
  1282.  
  1283.           The fields 'Blocks' and 'Bytes' only show  a  value  for  files,
  1284.           but when DIRINFO is used the string 'Dir' will be replaced by  a
  1285.           value representing the number of blocks/bytes used by the  files
  1286.           found in the dir.
  1287.  
  1288.           Note: the use of the fields 'R' and 'I' will  automatically  set
  1289.                 the DIRINFO option. 
  1290.  
  1291.           The information given will reflect  on  all  scanned  levels  of
  1292.           that directory. If you only would like these values  to  reflect
  1293.           the base of the directory, thus ignoring the  sub-dirs  of  sub-
  1294.           dirs..., then you must use the BASE option.
  1295.  
  1296.           Note: the BASE option can be used on  its  own,  since  it  will
  1297.                 also automatically select the DIRINFO option.
  1298.  
  1299.             | try 'DirKING RAM: ALL INCL nribl' and notice  the  different
  1300.             | result with 'DirKING RAM: ALL INCL nribl BASE'.
  1301.  
  1302.        E. Limiting listed directory levels.
  1303.  
  1304.         » LISTLEVELS <#>
  1305.  
  1306.           In some cases you'll have scanned  more  directory  levels  then
  1307.           you want to have listed, e.g. when you only  want  to  know  the
  1308.           size used by directories of the first level.  For  this  purpose
  1309.           you must use LISTLEVELS, which lets you define how  many  levels
  1310.           you want to list. If a value of 0 is given,  then  no  directory
  1311.           will be listed.
  1312.  
  1313.             | 'DirKING RAM: ALL MAXHEAD LISTLEVELS 0'
  1314.  
  1315.             | 'DirKING RAM: ALL MAXHEAD LISTLEVELS 1'
  1316.  
  1317.  
  1318.  
  1319.        §5 Directory sorting.
  1320.           ~~~~~~~~~~~~~~~~~~
  1321.           By default DirKING will sort the names of files and  directories
  1322.           in ascending alphabetical order.  In  the  listing  itself,  all
  1323.           files will be printed first, and last the directories. 
  1324.  
  1325.         » SORT {nkribladtcygme}
  1326.  
  1327.           DirKING is able to execute  a  complex sort on all the fields of
  1328.           a directory entry. On which  field  to  sort,  is  specified  by
  1329.           their appropriate code.  Important  however  is  to  type  these
  1330.           codes in the order you want DirKING to sort the fields.
  1331.  
  1332.           The following codes (and fields) are supported :
  1333.  
  1334.             - N : sort on file/dir name
  1335.             - K : sort on file/dir diskkey
  1336.             - R : sort on number of sub-dirs in a dir (only dirs)
  1337.             - I : sort on number of files in a dir (only dirs)
  1338.             - B : sort on blocks used by a file (sometimes also dirs)
  1339.             - L : sort on bytes used by a file (sometimes also dirs)
  1340.  
  1341.  
  1342.  
  1343.                                        DirKING v3.0x User Manual - Page 21
  1344.  
  1345.             - A : sort on file/dir attributes   (sorts   on   the   binary
  1346.                   value of these attributes)
  1347.             - D : sort on file/dir datestamp
  1348.             - T : sort on file/dir timestamp
  1349.             - C : sort on file/dir comment if it's present
  1350.             - Y : sort on a file's datatype type (only files)
  1351.             - M : sort on file/dir naked name
  1352.             - E : sort on file/dir name last extension
  1353.  
  1354.           REMARK: since  AmigaDOS  file/dirnames  are unique in  the  same
  1355.                   directory  level,  any  sort  codes after the  'N'  code
  1356.                   aren't  executed  (because  this  would be  a  waste  of
  1357.                   valuable processing time!).
  1358.  
  1359.           Note:  specifying the fields  to  sort  on,  doesn't  mean  that
  1360.                  these items will be  printed  in  the  listing.  What  is
  1361.                  actually printed depends  on  the  options  explained  in
  1362.                  '§4C'.
  1363.  
  1364.             | 'SORT ds' : first sort on the date, then on the size.
  1365.  
  1366.             | 'SORT tna' : first sort on the time, then on  the  name.  No
  1367.             |              sort  is  executed  on  the  attributes,  since
  1368.             |              filenames are unique. 
  1369.           
  1370.         » NOSORT
  1371.  
  1372.           If used then the listing won't be sorted. Thus giving  a  slight
  1373.           scanning speed increase.
  1374.  
  1375.         » DESC
  1376.  
  1377.           By default the directory is sorted ascending (thus from  low  to
  1378.           high). If  you  want  a  descending sort (from high to low), you
  1379.           have to use DESC.
  1380.  
  1381.         » FD|DF|MIX
  1382.  
  1383.           The files and directories can  be  printed  at  three  different
  1384.           places in the listing. You can select the appropriate format  by
  1385.           using one of the following arguments :
  1386.  
  1387.            - 'FD'  : (default) print files first, directories last.
  1388.            - 'DF'  : print directories first, files last.
  1389.            - 'MIX' : print files and directories among each other. 
  1390.  
  1391.  
  1392.        §6 Listing formatting.
  1393.           ~~~~~~~~~~~~~~~~~~~
  1394.           The format of the actual listing can be either  a  table  format
  1395.           or a script format. Most of the time, however,  you'll  use  the
  1396.           table format.
  1397.  
  1398.        A. Listing table formatting. 
  1399.  
  1400.        A.1. Setting the listing table width.
  1401.  
  1402.         » MAXWIDTH <#>
  1403.  
  1404.           DirKING will expand the listing table  in  accordance  with  the
  1405.  
  1406.  
  1407.        Page 22 - DirKING v3.0x User Manual
  1408.  
  1409.           fields to be printed, and the length of the FileName  field.  In
  1410.           most cases, you'll want to set  a  limit to this expanding. With
  1411.           'MAXWIDTH' you can specify how many characters  may  be  printed
  1412.           on one line. If the listing is too wide, then if the name  field
  1413.           is printed, it will be cut (the name field  is  the  only  field
  1414.           that can be trimmed, all other fields have a fixed  length).  If
  1415.           the name of a file or directory should be too  long  to  fit  in
  1416.           the FileName field, then the last character will be  an  '$'  to
  1417.           indicate that more characters are following in that name. 
  1418.  
  1419.           Note: the MAXWIDTH  option  is  only  effective  on  the  actual
  1420.                 listing, not on the listing header or listing end.
  1421.  
  1422.           REMARK: the limit set with 'MAXWIDTH' won't work in  all  cases.
  1423.                   This depends on the fields to  be  printed.  The  fields
  1424.                   that have a fixed length will always be  fully  printed.
  1425.                   The only variable field is  the  'FileName'  field,  but
  1426.                   it can't be smaller than  16  characters.  DirKING  will
  1427.                   always  print  the  fixed  fields  and  the  minimal  16
  1428.                   characters,  even  if  the  total  width   exceeds   the
  1429.                   'MAXWIDTH' setting. 
  1430.  
  1431.             | 'MAXWIDTH 70' : the actual listing  width  can  only  be  70
  1432.             |                 characters wide. 
  1433.  
  1434.         » EXPAND
  1435.  
  1436.           By  default, DirKING will only print as wide as is necessary  to
  1437.           print all the wanted fields. So  the  listing  width  will  vary
  1438.           from directory to directory. If you want DirKING to make use  of
  1439.           the full allowed listing width, then you must use EXPAND.
  1440.  
  1441.           When  MAXWIDTH is used, then DirKING will print a  listing  with
  1442.           an actual width as specified. When you don't use MAXWIDTH,  then
  1443.           DirKING will use the full width of your current Shell window.
  1444.  
  1445.        A.2. Setting the list order of the table fields.
  1446.  
  1447.         » LISTORD <fmt>
  1448.  
  1449.           Normally the listing is printed in the form of  a  table,  where
  1450.           each column represents a  field.  The  default  field  order  is
  1451.           'NMEKRIBLAHDTSVWYGJOPF'.
  1452.  
  1453.           To define the order of the fields, you must use the field  codes
  1454.           as explained with the INCL option (see above).
  1455.  
  1456.             | 'LISTORD dalnktb' : defines  the  order   :   date,   flags,
  1457.             |                     bytes, name, keys, time and blocks.
  1458.  
  1459.           Note: the use of LISTORD doesn't mean  that  these  fields  will
  1460.                 actually be  printed.  This  depends  on  the  options  as
  1461.                 described under '§4C'.
  1462.  
  1463.           Important: When defining the fields order,  you  don't  have  to
  1464.                      enter  all  codes  for  the  fields  that   will   be
  1465.                      printed.  When   you only define  the  order  of  the
  1466.                      first fields, DirKING  will  use  the  default  order
  1467.  
  1468.  
  1469.  
  1470.  
  1471.                                        DirKING v3.0x User Manual - Page 23
  1472.  
  1473.                      for the rest of the fields.
  1474.  
  1475.             | 'LISTORD an' : only two fields are  defined,  the  rest  are
  1476.             |                printed  in  the  default  order.  The  order
  1477.             |                will  then  be  : flags, name, keys,  blocks,
  1478.             |                bytes, date and time. 
  1479.  
  1480.           Previous versions of DirKING allowed the use  of  print  control
  1481.           sequences with the LISTORD argument. This has  been  removed  in
  1482.           the current version because of the implementation  of  TABLEFMT.
  1483.           But I'm thinking of supportin it again in future versions.
  1484.  
  1485.           REMARK: the LISTORD option  has  no  effect  when  TABLEFMT  was
  1486.                   used!
  1487.  
  1488.  
  1489.        A.3. Formatting the listing table.
  1490.  
  1491.           With the following options you can customize the format  of  the
  1492.           listing table, and the format of the date-  and  timestamp.  All
  1493.           these format options, support the use of  AmigaDOS print control
  1494.           sequences. To introduce such a  sequence  in  the  formatstring,
  1495.           you have  to  use  a  '\'  character  followed  by  one  of  the
  1496.           following codes :
  1497.  
  1498.             - e : insert an  ESCape  character  (refer  to  your  AmigaDOS
  1499.                   manual  for  a  list  of  the  supported  print  control
  1500.                   sequences)
  1501.             - t : insert a TAB character
  1502.             - n : insert a line feed
  1503.             - f : insert a form feed
  1504.             - " : print a double quotation mark (")
  1505.             - \ : used to print '\'.
  1506.  
  1507.           The format options also allow formatting  in  the  same  way  as
  1508.           with the use of the RawDoFmt() routine  from  the  Exec.library.
  1509.           Programmers will have the hang of this, but  for  novice  users,
  1510.           here's a short explanation how RawDoFmt() formatting works.  The
  1511.           template for an item is as follows:
  1512.  
  1513.             %[-][0][min[.max]]code
  1514.  
  1515.           Meaning:
  1516.  
  1517.             - '%'   : each item must be introduced by a '%' code.
  1518.             - '-'   : forces the item to be left aligned, instead  of  the
  1519.                       default right aligning.
  1520.             - '0'   : if the item is smaller than the  given  width,  then
  1521.                       the  item  will   be   expanded   with   blanks   or
  1522.                       zeros.
  1523.             - 'min' : this  value  defines  the  minimum  width  an   item
  1524.                       must have.        
  1525.             - '.max': this value defines the maximum  width  an  item  can
  1526.                       have. If it's too long, then it's cut to  the  right
  1527.                       length.
  1528.             - 'code': this is the field code  as  explained  earlier  with
  1529.                       the INCL option.
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.        Page 24 - DirKING v3.0x User Manual
  1536.  
  1537.         » DFORMAT <fmtstr>
  1538.  
  1539.           DirKING uses the AmigaDOS dateformat  (which  is  DD-MMM-YY)  as
  1540.           its default format. With  'DFORMAT'  you  can  define  your  own
  1541.           dateformat. This formatstring can  contain  normal  text,  print
  1542.           control  sequences  and  of   course   the   date   substitution
  1543.           operators. The substitution operators indicate which  date  item
  1544.           has  to  be  printed.  Such  an  operator  consists  of  an  '%'
  1545.           character and one of the following date item codes :
  1546.  
  1547.            - w : insert a two character dayname (e.g.Sa,Su,Mo,...)
  1548.            - W : insert the full dayname (e.g.Sunday,Monday,...)
  1549.            - d : insert the day in the month
  1550.            - m : insert the month number (1..12)
  1551.            - M : insert a three character month name (e.g.Jul,Aug,...)
  1552.            - O : insert the full month name (e.g. january, august,...)
  1553.            - y : insert the last two digits of the year (e.g.91,92,...)
  1554.            - Y : insert a four digit year (e.g.1991,1992,...)
  1555.  
  1556.             | 'DFORMAT %w_%d/%Y/%m' : gives a date like Su_23/1992/08.  
  1557.  
  1558.             | 'DFORMAT "\e[1m%W\e[0m  \e[3m%d  %M  %Y\e[0m"'  (Notice  the
  1559.             | quotation marks! They're  used  because  the  DFORMAT  data-
  1560.             | argument contains spaces!) 
  1561.             | The defined date format will result in a date  looking  like
  1562.             | this : 'Friday 11 Sep 1992
  1563.  
  1564.           Note: The TFORMAT and SFORMAT  codes  are  also  supported  with
  1565.                 DFORMAT! 
  1566.  
  1567.           Important: the item codes are used case-sensitive!
  1568.  
  1569.         » TFORMAT <fmtstr>
  1570.  
  1571.           Everything said for  DFORMAT  is  true  for  TFORMAT,  the  only
  1572.           difference is the specific set of time item codes :
  1573.  
  1574.             - H : insert the hour in 24 hour mode (0..23)
  1575.             - h : insert the hour in 12 hour mode (0..11)
  1576.             - i : insert the minutes
  1577.             - s : insert the seconds
  1578.             - T : insert AM  or  PM  according  to  the  hour  ('T'  works
  1579.                   independent from 'H' and 'h', in other words  you  don't
  1580.                   have to use 12 hour mode to use AM/PM!).
  1581.  
  1582.             | 'TFORMAT %h:%m_%T' : gives time like '08:53_AM'.
  1583.  
  1584.             | 'TFORMAT \e[1m%h\e[0m:\e[3m%i\e[0m:\e[4m%s\e[0m' : gives   a
  1585.             | time like : '14:30:18'. 
  1586.  
  1587.           Note: The DFORMAT and SFORMAT  codes  are  also  supported  with
  1588.                 TFORMAT! 
  1589.  
  1590.         » SFORMAT <fmtstr>
  1591.  
  1592.           Everything said for DFORMAT and TFORMAT  is  true  for  SFORMAT,
  1593.           the only difference is the specific set of item codes :
  1594.  
  1595.             - D : insert number of days since 1/1/1978
  1596.             - U : insert number of minutes since 00:00
  1597.  
  1598.  
  1599.                                        DirKING v3.0x User Manual - Page 25
  1600.  
  1601.             - I : insert number of ticks since last minute
  1602.  
  1603.             | 'SFORMAT %D/%U/%I' : gives stamp like '4900/1234/1025'.
  1604.  
  1605.           Note: The DFORMAT and TFORMAT  codes  are  also  supported  with
  1606.                 SFORMAT! 
  1607.  
  1608.        B. Predefined listing table formats.
  1609.  
  1610.           As a shortcut,  DirKING  has  several  predefined  formats,  for
  1611.           selecting  a  listing  order,  a  date-  or  timeformat.   These
  1612.           predefined formats can be accessed by their appropriate code.
  1613.  
  1614.         » LISTF <code 0..4>
  1615.  
  1616.           The following listing orders are supported :
  1617.  
  1618.             - 0 : NKBLADT (default)
  1619.             - 1 : NAKLBDT
  1620.             - 2 : NADTLBK
  1621.             - 3 : NDALBKT
  1622.             - 4 : ALBKDTN
  1623.  
  1624.         » DATEF <code 0..7>
  1625.  
  1626.           The following dateformats are supported :
  1627.  
  1628.            - 0  : '%d-%M-%y'  -> DOS format dd-mmm-yy (e.g. '14-Aug-92')
  1629.            - 1  : '%y-%M-%d'  -> INT format yy-mmm-dd (e.g. '92-Aug-14')
  1630.            - 2  : '%m-%d-%y'  -> USA format mm-dd-yy  (e.g. '08-14-92')
  1631.            - 3  : '%d-%m-%y'  -> CDN format dd-mm-yy  (e.g. '14-08-92')
  1632.            - 4  : '%w %d-%M-%y' -> (DOS format - e.g. 'Fr 11-Sep-92')
  1633.            - 5  : '%w %y-%M-%d' -> (INT format - e.g. 'Fr 92-Sep-11')
  1634.            - 6  : '%w %m-%d-%y' -> (USA format - e.g. 'Fr 09-11-92')
  1635.            - 7  : '%w %d-%m-%Y' -> (CDN format - e.g. 'Fr 11-09-92')
  1636.  
  1637.         » TIMEF <code 0..3>
  1638.  
  1639.           The following timeformats are supported :
  1640.  
  1641.             - 0 : '%H:%i:%s'     (e.g. '14:30:00' )
  1642.             - 1 : '%h:%i:%s-%T'  (e.g. '02:30:00 PM') 
  1643.             - 2 : '%H:%i'        (e.g. '14:30')
  1644.             - 3 : '%h:%i-%T'     (e.g. '02:30 PM')
  1645.  
  1646.        C. Free formatting and script generation.
  1647.         
  1648.         » TABLEFMT <fmtstr>
  1649.  
  1650.           With this option you can directly  specify  the  format  of  the
  1651.           listing table. The formatstring is constructed in the  same  way
  1652.           as with LFORMAT, but now the listing table is formatted.
  1653.  
  1654.           To introduce an item, you must use the appropriate  substitution
  1655.           operator. This is nothing more than a '%' character followed  by
  1656.           the  wanted  field  code.  These   operators   can   also   hold
  1657.           information on alignment and width of  the  field,  as  we  have
  1658.           previously seen with Exec.RawDoFmt() formatting.
  1659.  
  1660.           To get a clean formatted table it's  necessary  to  specify  the
  1661.  
  1662.  
  1663.        Page 26 - DirKING v3.0x User Manual
  1664.  
  1665.           width of each field, except for the name and naked  name  field,
  1666.           because for the latter DirKING  will  calculate  the  width  for
  1667.           you. Remember to use '-' if you want to left align the field!
  1668.  
  1669.             | 'DirKING RAM: TABLEFMT "%-12N  %6.6B  %10A"' will give:
  1670.             | F i l e N a m e  Blocks  Flags     
  1671.             | Disk.info             1  f-----rw-d
  1672.             | CLIPS             D i r  d-----rwed
  1673.             | ENV               D i r  d-----rwed
  1674.             | T                 D i r  d-----rwed
  1675.  
  1676.           Note: if you'd like DirKING to calculate the width of  the  name
  1677.                 and naked name fields, then leave  out  the  width  values
  1678.                 and use something like "%N"  or  "%M".  Insert  a  '-'  to
  1679.                 left align  the  name,  because  otherwise  the  field  is
  1680.                 right aligned.
  1681.  
  1682.           Remark: when TABLEFMT is used,  then  the  LISTORD,  INCL,  EXCL
  1683.                   and LISTF will have no effect!
  1684.  
  1685.         » LFORMAT <fmtstr>
  1686.  
  1687.           LFORMAT is the only way to  have  full  control  on  the  actual
  1688.           listing print  format.  I  say  'actual  listing'  because  when
  1689.           LFORMAT is used, no listing head, title or end will be  printed.
  1690.           The main use of LFORMAT  will  probable  be  the  generation  of
  1691.           scripts, but you don't have to limit it to this.
  1692.  
  1693.           IMPORTANT : LFORMAT MUST ALWAYS  BE  THE  LAST  ARGUMENT,  SINCE
  1694.           EVERYTHING AFTER THE LFORMAT  KEYWORD  IS  PART  OF  THE  FORMAT
  1695.           STRING!! (This means that quotation marks may only  be  used  if
  1696.           they're needed in the output!)
  1697.  
  1698.           The 'LFORMAT' option works in the same way as  in  the  AmigaDOS
  1699.           'List'  command,  so  you  should  have   no   difficulties   to
  1700.           understand the use of it.
  1701.  
  1702.           The format string can  contain  three  sorts  of  text.  Firstly
  1703.           normal text, secondly the substitution operators (like  '%S'  or
  1704.           '%N'), and thirdly AmigaDOS print control  sequences  (refer  to
  1705.           the  previous  explanation  on  the  use  of  these  in   format
  1706.           strings). Like the AmigaDOS command  'List',  DirKING  uses  two
  1707.           sorts of substitution operators :      
  1708.  
  1709.           a. Usage of '%S' operators.
  1710.  
  1711.           The usage of '%S' substitution  operators  is  limited,  because
  1712.           you only have access to the name and path of  directory  entries
  1713.           (files/directories). To  know  where  and  what  information  to
  1714.           print, DirKING uses the followig table of '%S' occurences :
  1715.  
  1716.             Occurences  1st     2nd     3rd     4th     5th     6th...  
  1717.             1           name    -       -       -       -       -
  1718.             2           path    name    -       -       -       -
  1719.             3           name    path    name    -       -       -
  1720.             4           path    name    path    name    -       -
  1721.             5           name    path    name    path    name    -
  1722.             6           path    name    path    name    path    name
  1723.             ...
  1724.  
  1725.  
  1726.  
  1727.                                        DirKING v3.0x User Manual - Page 27
  1728.  
  1729.             | 'LFORMAT Path:[%s]   Name:[%s]' :  Just  try  this   format-
  1730.             | string on a directory  and  see  the  magic.  Note  that  no
  1731.             | quotation marks were used, since  these  aren't  needed  for
  1732.             | LFORMAT, unless you want them in the output!
  1733.  
  1734.           b. Usage of field specific operators.
  1735.  
  1736.           The  usage  of  '%S'   substitution   operators   isn't   really
  1737.           recommended since its range is limited, and  the  format  string
  1738.           can sometimes be hard to read if many operators are  used.  It's
  1739.           better to use  the  field  specific  operators,  since  you  can
  1740.           exactly specify which field to print, and where to print it. 
  1741.  
  1742.           DirKING supports the same field substitution  operators  as  the
  1743.           AmigaDOS command  'List'.  These  operators  consist  of  a  '%'
  1744.           character followed by  one  of  the  field  codes  as  explained
  1745.           earlier with the INCL option.
  1746.  
  1747.  
  1748.             | Assume current directory is 'Workbench:Devs'
  1749.             | 'DirKING keymaps LFORMAT File:[%N] Path:[%P] FullP:[%F]'
  1750.             | DirKING will read  the  'Workbenvh:Devs/KeyMaps'  directory.
  1751.             | The output can then be something like this :
  1752.             | 'File:[usa] Path:[] FullP:[KeyMaps/]'
  1753.             | If you also use  FULLPATH  in  the  command  line  then  the
  1754.             | output will be :
  1755.             | 'File:[usa] Path:[] FullP:[Workbench:Devs/KeyMaps/]'
  1756.  
  1757.             | 'DirKING TO RAM:script FILES LFORMAT RENAME %N %N.iff' :
  1758.             | This will  generate  a  script  in  the  'RAM:'  disk.  When
  1759.             | executed, the rename commands will add an  'iff'  suffix  to
  1760.             | the name of files found in the current directory. 
  1761.  
  1762.         » EXEC <file>
  1763.  
  1764.           As we've just seen, LFORMAT is  ideal  for  generating  AmigaDOS
  1765.           scripts which can  then  be  later  executed  with  the  EXECUTE
  1766.           command.  But  DirKING  also  offers  the  ability  to  directly
  1767.           execute such scripts from within itself. This is done  with  the
  1768.           EXEC option. As an argument, it takes the name (incl.  path)  of
  1769.           the file to be generated. When the script  has  been  generated,
  1770.           DirKING will execute this script, just like EXECUTE would.
  1771.  
  1772.           Remark: users of AmigaDOS v1.x should have the  EXECUTE  command
  1773.                   in their 'C:' directory for this option to work! 
  1774.  
  1775.  
  1776.  
  1777.        §7 DirKING MULTI-mode (multiple directory scanning). 
  1778.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1779.         » MULTI
  1780.  
  1781.           The MULTI mode was implemented to present  a  more  flexible way
  1782.           of scanning several disks in a  row. If DirKING is first started
  1783.           with  MULTI  in  its  command  line,  then  the  directory  will
  1784.           immediately be read. When the listing has been printed,  instead
  1785.           of breaking off, DirKING will print a prompt giving  the  choice
  1786.           between the following operations :
  1787.  
  1788.             - RETURN : start scanning the directory. 
  1789.  
  1790.  
  1791.        Page 28 - DirKING v3.0x User Manual
  1792.  
  1793.  
  1794.                   If you want to read several disks, then you must  use  a
  1795.                   drive name as  the  path  (e.g.  'DF1:').  DirKING  will
  1796.                   then always scan the disk in  drive  'DF1:'.  (Otherwise
  1797.                   if you type the name of a disk like  'Workbench:',  then
  1798.                   each time you press  'S'  to  reply  the  MULTI  prompt,
  1799.                   DirKING will always access that disk.)
  1800.  
  1801.                   The  only  time  MULTI  mode  is  useful   when   you've
  1802.                   specified a  path  other  than  a  drive  name,  is  for
  1803.                   printing several copies of that directory.   
  1804.  
  1805.             - ESC : quit DirKING.
  1806.  
  1807.             - DEL : enter new program settings.
  1808.  
  1809.                   Let's you enter new DirKING  arguments,  just  like  you
  1810.                   would when starting  DirKING.  It's  important  to  know
  1811.                   that you don't have to  type  'DirKING'  anymore,  since
  1812.                   you  aren't  starting  the  program!   Only   type   the
  1813.                   arguments.
  1814.             
  1815.                   REMARK: entering   nothing,    besides    the    return,
  1816.                           preserves the current settings.
  1817.  
  1818.                   Note: you  don't  have  to  type  MULTI  anymore,  since
  1819.                         DirKING will stay in MULTI  mode  until  an  error
  1820.                         occurs, or you want to quit the program.
  1821.  
  1822.             - HELP : shows  the  usage  prompt,  as  a  reminder  of   the
  1823.                      options syntax.
  1824.  
  1825.  
  1826.        §8 Listing styles.
  1827.           ~~~~~~~~~~~~~~~
  1828.           DirKING normally prints the files in plain characters,  and  the
  1829.           directories in italic. The directory entries are  also  indented
  1830.           to show the structure of the directory.
  1831.             
  1832.        A. Information format.
  1833.  
  1834.         » SHOWLEVEL
  1835.  
  1836.           Instead of indenting with spaces ('   '),  DirKING  will  indent
  1837.           with '__' for files and '_/' for directories. SHOWLEVEL is  very
  1838.           useful to get a clear view of the directory tree structure.
  1839.  
  1840.             | 'DirKING  RAM:  SHOWLEVEL  ALL  DIRS' : you'll get  a  clear
  1841.             | view of the directory tree of your  'Ram  Disk'.  Note  that
  1842.             | the  use  of   DIRS   forces   DirKING   only   to   include
  1843.             | directories.
  1844.  
  1845.         » BINFLAGS
  1846.  
  1847.           By default DirKING uses 'hsparwed' to represent  the  file-  and
  1848.           directory attributes (protectionflags). BINFLAGS will result  in
  1849.           a   binary   value   representation  (e.g.  00010000)  of  these
  1850.           attributes.
  1851.  
  1852.  
  1853.  
  1854.  
  1855.                                        DirKING v3.0x User Manual - Page 29
  1856.  
  1857.         » DATES
  1858.  
  1859.           Like the AmigaDOS command 'List', DirKING will use the  daynames
  1860.           (Sunday...Saturday) of the dates  if  they're  within  the  last
  1861.           week     of     the     current     date.     Besides      these
  1862.           'Yesterday','Today','Tomorrow' and 'Future' are also used.
  1863.  
  1864.           You can disable this by using 'DATES'. This  forces  DirKING  to
  1865.           print all dates in the  same date format (the default is DD-MMM-
  1866.           YY).
  1867.  
  1868.         » HEXVAL
  1869.  
  1870.           Normally all values printed in the listing are in their  decimal
  1871.           notation.  Using  'HEXVAL'  instructs   DirKING   to   use   the
  1872.           hexadecimal notation instead. 
  1873.  
  1874.         » LOCVALS
  1875.  
  1876.           Under AmigaDOS v2.1 and later, DirKING enables the user  to  use
  1877.           the 'locale' formatted values (e.g. 1,234 instead of 1234).
  1878.  
  1879.  
  1880.        B. Listing print styles.
  1881.  
  1882.           The following options define in which style the  entire  listing
  1883.           is printed, and also how the directory entries  themselves  will
  1884.           be printed.
  1885.  
  1886.         » TEXT
  1887.  
  1888.           The TEXT option will remove all  print  control  sequences  from
  1889.           the listing, thus leaving only pure text.
  1890.  
  1891.  
  1892.         » DIRSTYLE [r|i|b|y|f|a|e][r|i|b|y|f|a|e]
  1893.  
  1894.           The   default  print  style  for  files  is  plain  text,  while
  1895.           directories use italics. These styles can be  altered  by  using
  1896.           predifined style codes. Only the first  two  characters  of  the
  1897.           'DIRSTYLE's  data-argument  will  be  used,  where   the   first
  1898.           character gives the style for directories, and  the  second  for
  1899.           files. (One character data-arguments are also valid,  the  files
  1900.           will  then  be  printed  in  their  default  style,  while   the
  1901.           directories will use the specified style.) 
  1902.  
  1903.           The following character style codes are supported :
  1904.  
  1905.             - R : Red 
  1906.             - I : Italic 
  1907.             - B : Bold
  1908.             - Y : Yuppy -> Red/Italic
  1909.             - F : Fat   -> Red/Bold
  1910.             - A : All   -> Red/Italic/Bold
  1911.             - E : Elite -> Italic/Bold
  1912.             - N : Normal (plain)
  1913.  
  1914.           Note:  DIRSTYLEs determine in  which  style  a  directory  entry
  1915.                  will be printed. If you want to print  a  specific  field
  1916.                  in another style, then you  must  make  use  of  AmigaDOS
  1917.  
  1918.  
  1919.        Page 30 - DirKING v3.0x User Manual
  1920.  
  1921.                  print    control    sequences    with    the     DFORMAT,
  1922.                  TFORMAT, SFORMAT or TABLEFMT option.
  1923.  
  1924.             | 'DIRSTYLE ab' : print the directories  in  red,  italic  and
  1925.             |                 bold  characters,  and  the  files  in  bold
  1926.             |                 characters.
  1927.  
  1928.         » PRTSTYLE {rdlbpes}
  1929.  
  1930.           If the DirKING  output  is  directed  to  the  printer, then the
  1931.           printer style settings won't be changed,  unless  the  following
  1932.           codes are given :
  1933.  
  1934.             - R : reset to normal characters
  1935.             - D : print in draft quality
  1936.             - L : print in near_letter_quality
  1937.             - B : print in subscript
  1938.             - P : print in superscript
  1939.             - E : print in elite (12 cpi)
  1940.             - S : print with doublestriking
  1941.  
  1942.             | 'PRTSTYLE de' : print in elite and draft quality.
  1943.  
  1944.  
  1945.  
  1946.        §9 Listing output redirection.
  1947.           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1948.           The default output is to the  Shell  window  where  DirKING  was
  1949.           started. Although you can use  the  AmigaDOS  redirection  (e.g.
  1950.           '>PRT:')  to  output  somewhere   else,   it's   sometimes   not
  1951.           recommended. This is the case when you use  TRACE  for  example.
  1952.           If you would use AmigaDOS  redirection  when  TRACE  is  active,
  1953.           then  all  TRACE  information  would  be  send   to   this   new
  1954.           destination,  which  isn't  what   you   want.   Therefore   two
  1955.           redirection arguments were implemented in DirKING to  split  the
  1956.           output.  The  DirKING  messages  (e.g.  TRACE  information)  are
  1957.           printed in the Shell window as usual, but the directory  listing
  1958.           will be send to the selected output device.  
  1959.  
  1960.         » PRT
  1961.  
  1962.           a. General use.
  1963.  
  1964.           As the argument keyword suggest, this  redirects  the  directory
  1965.           listing to the printer ('PRT:').
  1966.  
  1967.           b. Use in MULTI-mode.
  1968.  
  1969.           When DirKING has to send the directory listing, it  first  opens
  1970.           a channel to the  printer  (this  is  called  'locking'). As you
  1971.           know from the explanation of MULTI, DirKING  doesn't  break  off
  1972.           after printing the directory, instead a prompt is printed.  When
  1973.           you reply this prompt with  'S'  then  DirKING  starts  scanning
  1974.           again. DirKING will then  send  this  listing  again  along  the
  1975.           previously opened channel.
  1976.  
  1977.           It's  important to note that DirKING doesn't close  this  output
  1978.           channel when in MULTI-mode, since DirKING always uses  the  same
  1979.           arguments. ONLY when new arguments are entered (the  prompt  was
  1980.           replied with 'A'), then DirKING will close this  output  channel
  1981.  
  1982.  
  1983.                                        DirKING v3.0x User Manual - Page 31
  1984.  
  1985.           (and open a new channel to the  new  specified  output  device)!
  1986.           DirKING does this to make sure it always has  direct  access  to
  1987.           the  printer,  so   the   listing   can   be   printed   without
  1988.           interruptions.
  1989.  
  1990.         » TO <file>
  1991.  
  1992.           a. General use.
  1993.  
  1994.           With the 'TO'  argument  you  can  send  the  directory  listing
  1995.           anywhere you like, as long as it's a valid AmigaDOS path.
  1996.  
  1997.             | 'DirKING  DF1:  TO  RAM:df1'  will  output  the  listing  of
  1998.             | 'DF1:' to a file in RAM: called 'df1'.
  1999.  
  2000.             | 'TO PRT:' : naturally you can also use the  TO  argument  to
  2001.             |             send the directory listing to the printer.
  2002.  
  2003.           b. Use in MULTI-mode.
  2004.  
  2005.           As mentioned with 'PRT', DirKING only opens the  output  channel
  2006.           once. Only when new  arguments  are  supplied  is  this  channel
  2007.           closed, and another opened if needed.
  2008.  
  2009.           This way of working is extremely  useful,  since  you  can  send
  2010.           several directory listings to one file.  All  listings  will  be
  2011.           placed after one another.
  2012.  
  2013.             | 'DirKING  DF1:  TO  RAM:df1_dirs  MULTI'   will   send   all
  2014.             | directory listings of the disks you've  inserted  in  'DF1:'
  2015.             | to the file in RAM: called 'df1_dirs'
  2016.  
  2017.           c. Use in conjunction with PRT.
  2018.  
  2019.           If only 'TO' is used, then DirKING will save  the  listing  with
  2020.           the Shell control  sequences.  When  you  also  use  'PRT'  then
  2021.           DirKING will use the printer control sequence instead. 
  2022.           Let's take a  look  at  the  printing  of  bold  characters,  to
  2023.           demonstrate the difference between these control sequences :
  2024.  
  2025.             -> Shell control sequences > bold on  : 'esc[1m' 
  2026.                                          bold off : 'esc[0m' <<
  2027.             -> Print control sequences > bold on  : 'esc[1m'
  2028.                                          bold off : 'esc[22m' <<
  2029.  
  2030.  
  2031.        §10 Listing paging.  
  2032.            ~~~~~~~~~~~~~~~
  2033.         » NEWPAGE [[{cmhte}]<#>]
  2034.  
  2035.           By  default DirKING will print the directory listing in one  go.
  2036.           If a long listing is send to a Shell  window,  then  it  can  be
  2037.           annoying to see it flying by. To prevent this from happening,  a
  2038.           paging facility was implemented in DirKING.
  2039.  
  2040.           The NEWPAGE argument  can  be  used  in  three  different  ways.
  2041.           Besides this, the effect of  'NEWPAGE'  isn't  always  the  same
  2042.           when output is send to the Shell, to a file or to the printer. 
  2043.  
  2044.           Everytime a page of the listing has been shown,  a  prompt  will
  2045.  
  2046.  
  2047.        Page 32 - DirKING v3.0x User Manual
  2048.  
  2049.           appear, allowing four possible responses:
  2050.  
  2051.             - RETURN : shows the next page
  2052.             - SPACE  : shows the next line
  2053.             - L      : shows the rest of the listing
  2054.             - ESC    : quits listing
  2055.  
  2056.           a. Command : 'NEWPAGE'.
  2057.  
  2058.           When only 'NEWPAGE' is used,  and  output is redirected by 'PRT'
  2059.           or  'TO  <file>' then at the end a new page  character  will  be
  2060.           send.
  2061.  
  2062.           When the listing is shown in  the  Shell  window,  then  DirKING
  2063.           will use the window's length as the maximum page size.
  2064.  
  2065.           b. Command : 'NEWPAGE <#>'. 
  2066.  
  2067.           NEWPAGE will mostly be used in  this  way.  By  adding  a  value
  2068.           (greater than 10) to the NEWPAGE keyword, you  can  specify  how
  2069.           many lines should be printed on each page.
  2070.  
  2071.           If  output  is  send  to  your  Shell  window, then DirKING will
  2072.           display the NEWPAGE-prompt. 
  2073.  
  2074.           When  output  is  redirected  with  'PRT'  or  'TO  <file>' then
  2075.           instead of printing the NEWPAGE-prompt in the  Shell  window,  a
  2076.           new page charachter will be inserted in the listing. This  means
  2077.           that, each time the specified number  of  lines  is  reached,  a
  2078.           formfeed code is send to the output channel. As  with  the  bare
  2079.           'NEWPAGE' command, a new page character will be send at the  end
  2080.           of the listing.
  2081.  
  2082.             | 'NEWPAGE 20' : only print 20 lines on a page.
  2083.  
  2084.           REMARK: If the given value is less than 10, then the  number  of
  2085.                   lines will be set to 10!
  2086.  
  2087.           c. Command : 'NEWPAGE {ht}' or 'NEWPAGE {ht}<#>'.
  2088.  
  2089.           The NEWPAGE  argument  also  supports  additional options, which
  2090.           are indicated by the following characters (all  options  can  be
  2091.           used at once) and are used in conjunction with the  commands  as
  2092.           explained in (a.) en (b.) :
  2093.  
  2094.             - H : after  the  listing  header  is  printed,   a   formfeed
  2095.                   character will be send.
  2096.             - T : always print a listing  title  at  the  beginning  of  a
  2097.                   new page/screen.
  2098.             - C : clear the screen/page before showing the listing.
  2099.             - E : eject the screen/page after showing the listing.
  2100.             - M : clear  the  screen/page  after  each  multiple  assigned
  2101.                   directory. 
  2102.  
  2103.             | 'NEWPAGE c' : clear  the  screen  first,   then   show   the
  2104.             |               listing.
  2105.  
  2106.             | 'NEWPAGE ht20' : print  the  listing  header  on  one  page,
  2107.             |                  then use only 20 lines per  page  to  print
  2108.             |                  the listing itself.
  2109.  
  2110.  
  2111.                                        DirKING v3.0x User Manual - Page 33
  2112.  
  2113.  
  2114.        §11 Disk identification coding support.   
  2115.            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2116.  
  2117.         » DISKID <str>
  2118.  
  2119.           a. General use.
  2120.  
  2121.           If  you  use  a  catalog  tool  to  keep  track  of  your   disk
  2122.           collection, then this feature of  DirKING  is  very  useful.  It
  2123.           enables you to insert a string (this can be a disk ID  used  for
  2124.           cataloging your disks, or any  other  message)  in  the  listing
  2125.           header.  
  2126.  
  2127.           REMARK: Most times the DISKID string  will  contain  spaces,  in
  2128.                   which case you must  place  the  string  between  double
  2129.                   quotation marks.  
  2130.  
  2131.             | 'DISKID PD0/00.0000' : this disk ID will be printed  in  the
  2132.             |                        header.
  2133.  
  2134.             | 'DISKID "This is a  test  ID  string!"' : prints this string
  2135.             | in the listing header (notice the double quotation marks).
  2136.  
  2137.           b. Use in MULTI-mode. 
  2138.  
  2139.           The disk ID string that was typed  in  the  command  line  (thus
  2140.           when starting DirKING from Shell) will only be used  once!  Each
  2141.           time you reply the  MULTI  prompt  with  'S'  (start  scanning),
  2142.           DirKING will first ask  to  enter  a  new  disk  ID  string  (or
  2143.           message) before reading the directory.
  2144.  
  2145.  
  2146.  
  2147.        §12 DirKING environment variables.  
  2148.            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2149.  
  2150.           As of V3.00 DirKING supports four environment variables:
  2151.  
  2152.            - DK_DEFAULT : in  this  variable  you  can  specify  your  own
  2153.                           default settings, like what fields to  show,  in
  2154.                           what order, how to sort,  etc...  All  arguments
  2155.                           of DirKING may be given here. This  variable  is
  2156.                           always  parsed  first,  before   the   arguments
  2157.                           which were given on the command line. 
  2158.  
  2159.                             | 'SETENV  DK_DEFAULT   INCL   nkbladt   DATES
  2160.                             | LOCVALS  DFORMAT   %Y-%m-%d'   Use   DirKING
  2161.                             | without options and see the result.
  2162.  
  2163.  
  2164.            - DK_LISTORD : this  variable  holds  the  list  order  of  the
  2165.                           fields,  just  as  you  would  use  the  LISTORD
  2166.                           option.
  2167.  
  2168.                             | 'SETENV  DK_LISTORD  abln'  will   set   the
  2169.                             | LISTORD option with the 'albn' value.
  2170.  
  2171.            - DK_TABLEFMT: this variable  holds  the  TABLEFMT  string.  If
  2172.                           this variable  is  present,  then  DirKING  will
  2173.  
  2174.  
  2175.        Page 34 - DirKING v3.0x User Manual
  2176.  
  2177.                           set the TABLEFMT  option!  Only  create  such  a
  2178.                           variable  when  you  want  to  have   your   own
  2179.                           default table format.
  2180.  
  2181.                             | 'SETENV  DK_TABLEFMT  %-12N   %6.6B    %10A'
  2182.                             | will  set  the  TABLEFMT  option  with   the
  2183.                             | '%-12N  %6.6B  %10A' value.
  2184.  
  2185.            - DK_LFORMAT : this variable holds the LFORMAT string,  and  is
  2186.                           only used when the LFORMAT option  is  specified
  2187.                           without a formatstring.
  2188.  
  2189.                             | 'SETENV DK_LFORMAT %F%N' 
  2190.  
  2191.         » NOENV
  2192.  
  2193.           This option disables the use of the environment variables.
  2194.  
  2195.  
  2196.  
  2197.        §13 DirKING program information.  
  2198.            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2199.  
  2200.           Using '©' as an argument will  print  the  current  version  and
  2201.           copyright  of  DirKING.  This  replaces  the  previous   VERSION
  2202.           option.
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.                                        DirKING v3.0x User Manual - Page 35
  2240.  
  2241.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2242.                      APPENDIX : DIRKING KEYWORD REFERENCE  
  2243.        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2244.         DiskInfoBlock fields . . . . . . . . . . . . . . . . . . . . 16
  2245.         Exec.RawDoFmt() formatting . . . . . . . . . . . . . . . . . 24
  2246.         F|D|B filter options . . . . . . . . . . . . . . . . . . . . 10
  2247.         Pattern matching . . . . . . . . . . . . . . . . . . . . . .  4
  2248.         Special control codes. . . . . . . . . . . . . . . . . . . . 24
  2249.         ---------------------------------------------------------------
  2250.         <path|patt>. . . [[F|D|B]<path|patt>]. . . . . . . . . . . .  6
  2251.         ALL. . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  2252.         ASSLATE. . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  2253.         BARELIST . . . . . . . . . . . . . . . . . . . . . . . . . . 18
  2254.         BASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
  2255.         BINFLAGS . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  2256.         COMMENT. . . . . [COMMENT [F|D|B]<pattern>]. . . . . . . . . 13
  2257.         DATATYPE . . . . [DATATYPE <pattern> ] . . . . . . . . . . . 14
  2258.         DATEF. . . . . . [DATEF <0..7>]. . . . . . . . . . . . . . . 26
  2259.         DATES. . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  2260.         DESC . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  2261.         DF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  2262.         DFORMAT. . . . . [DFORMAT <fmtstr>]. . . . . . . . . . . . . 25
  2263.         DIRINFO. . . . . [DIRINFO [BASE]]. . . . . . . . . . . . . . 20  
  2264.         DIRS . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  2265.         DIRSTYLE . . . . [DIRSTYLE [r|i|b|y|f|a|e][r|i|b|y|f|a|e]] . 30
  2266.         DISKID . . . . . [DISKID <str>]. . . . . . . . . . . . . . . 34
  2267.         DISKINFO . . . . . . . . . . . . . . . . . . . . . . . . . . 16
  2268.         DISKUSE. . . . . . . . . . . . . . . . . . . . . . . . . . . 17
  2269.         EOD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  2270.         EXCL . . . . . . [EXCL {nkribladtsocpfhvwygjmex}]. . . . . . 20
  2271.         EXEC . . . . . . [EXEC <file>] . . . . . . . . . . . . . . . 28
  2272.         EXPAND . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
  2273.         FD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  2274.         FILES. . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  2275.         FLAGS. . . . . . [FLAGS [F|D|B]<flags>]. . . . . . . . . . . 13
  2276.         FROMTO . . . . . [FROMTO [F|D|B]<ch><ch>]. . . . . . . . . . 11
  2277.         FULLPATH . . . . . . . . . . . . . . . . . . . . . . . . . . 17
  2278.         HEAD . . . . . . [HEAD {mnbdvpktise}]. . . . . . . . . . . . 18
  2279.         HEXVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  2280.         HUNT . . . . . . [HUNT [F|D|B]<pattern>] . . . . . . . . . . 14
  2281.         INCL . . . . . . [INCL {nkribladtsocpfhvwygjmex}]. . . . . . 19
  2282.         LFORMAT. . . . . [LFORMAT <fmtstr>]. . . . . . . . . . . . . 27
  2283.         LINKDIRS . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  2284.         LISTF. . . . . . [LISTF <0..4>]. . . . . . . . . . . . . . . 26
  2285.         LISTLEVELS . . . [LISTLEVELS <#>]. . . . . . . . . . . . . . 21
  2286.         LISTORD. . . . . [LISTORD <fmt>] . . . . . . . . . . . . . . 23
  2287.         LOCVALS. . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  2288.         MAXHEAD. . . . . . . . . . . . . . . . . . . . . . . . . . . 18
  2289.         MAXWIDTH . . . . [MAXWIDTH <#>]. . . . . . . . . . . . . . . 22
  2290.         MIX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  2291.         MULTI. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
  2292.         NEWPAGE. . . . . [NEWPAGE [[{cmhte}]<#>]]. . . . . . . . . . 32
  2293.         NOENV. . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  2294.         NOHEAD . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
  2295.         NOREQ. . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  2296.         NOSORT . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  2297.         NOSTAT . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  2298.         PASS . . . . . . [PASS [F|D|B]<pattern>] . . . . . . . . . . 11
  2299.         PATH . . . . . . [F|D|B]<path|patt>. . . . . . . . . . . . .  7
  2300.         PRT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
  2301.  
  2302.  
  2303.        Page 36 - DirKING v3.0x User Manual
  2304.  
  2305.         PRTSTYLE . . . . [PRTSTYLE {rdlbpes}]. . . . . . . . . . . . 31
  2306.         QUICK. . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  2307.         READ . . . . . . [READ [F|D|B]<pattern>] . . . . . . . . . . 10
  2308.         SFORMAT. . . . . [SFORMAT <fmt>] . . . . . . . . . . . . . . 25
  2309.         SHOWLEVEL. . . . . . . . . . . . . . . . . . . . . . . . . . 29
  2310.         SINCE. . . . . . [SINCE "[F|D|B]<[DOSdate] [time]>"] . . . . 13
  2311.         SORT . . . . . . [SORT {nkribladtcygme}] . . . . . . . . . . 21
  2312.         SUB. . . . . . . [SUB [F|D|B]<string>] . . . . . . . . . . . 11
  2313.         TABLEFMT . . . . [TABLEFMT <fmt>]. . . . . . . . . . . . . . 26
  2314.         TEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  2315.         TFORMAT. . . . . [TFORMAT <fmtstr>]. . . . . . . . . . . . . 25
  2316.         TIMEF. . . . . . [TIMEF <0..3>]. . . . . . . . . . . . . . . 26
  2317.         TO . . . . . . . [TO <file>] . . . . . . . . . . . . . . . . 32
  2318.         TOLEVEL. . . . . [TOLEVEL <#>] . . . . . . . . . . . . . . . 10
  2319.         TRACE. . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
  2320.         UPTO . . . . . . [UPTO "[F|D|B]<[DOSdate] [time]>"]. . . . . 13
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.                                        DirKING v3.0x User Manual - Page 37
  2368.