home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 193_01 / setatr.txt < prev    next >
Text File  |  1985-11-14  |  3KB  |  60 lines

  1.                         SETATR
  2.                         ------
  3.  
  4.          SETATR will set (or un-set) the attribute bits used by
  5.          CP/M 2.2 (and by BACKUP, its companion programme) to -
  6.  
  7.               What it does                  Mode
  8.               ------------                  ----
  9.               
  10.               make a file read-only         R/O
  11.               make a file read-write        R/W
  12.               make a file "system"          SYS
  13.               make a file "directory"       DIR
  14.               archive a file                ARC  with BACKUP
  15.               copy a file                   CPY  with BACKUP
  16.  
  17.          It is a simple-minded programme and will only do one thing
  18.          at a time....so, no multiple commands on the command line.
  19.          The good news is that you can use the CP/M "ambiguous file"
  20.          feature to do whole classes of files at the one time if you
  21.          wish.   This is particularly useful in, say, converting all
  22.          your old "COM" files to "ARC" status before running BACKUP
  23.          on a disk for the first time.
  24.  
  25.          e.g. if you wanted to do this, just enter -
  26.  
  27.               setatr [d:]*.com arc  <RETURN>
  28.  
  29.          where "d:" is the optional drive specification, and it will
  30.          be done automatically.
  31.  
  32.          Note I didn't get it to check first to see whether the file
  33.          was already set to the status you ask, as it runs quickly
  34.          enough not to have to worry about saving a couple of seconds.
  35.          e.g. on my system it will do 36 files in 14 seconds, so I
  36.          figure that's good enough not to worry about speeding it up,
  37.          if indeed that is possible to do in any event.
  38.  
  39.          Otherwise, the usage for unambiguous files is -
  40.  
  41.               setatr [d:]filename MODE  <RETURN>
  42.  
  43.          where "MODE" is any of the three-letter combinations listed
  44.          above.   Either lower case or upper case is OK in any of the
  45.          commands as they are all converted to upper case in the
  46.          course of running SETATR.
  47.  
  48.          If you don't remember any of this, not to worry, just enter
  49.  
  50.               setatr  <RETURN>
  51.  
  52.          and it will prompt you for input from the console.   If you
  53.          find any bugs you may contact me at -
  54.  
  55.                              Phil Cogar,
  56.                              P.O. Box 364,
  57.                              Narrabeen,
  58.                              N.S.W.   AUSTRALIA   2101
  59.                              -------------------------e "directory"       DIR
  60.