home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / dirutl / fileattr.arc / FILEATTR.DOC next >
Encoding:
Text File  |  1988-02-13  |  5.1 KB  |  124 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                ╔══════════════════════════════════════════════════════╗
  9.                ║                   FILEATTR.EXE        by Brian Meier ║
  10.                ╚══════════════════════════════════════════════════════╝
  11.  
  12.  
  13.  
  14.          FILEATTR.EXE is a program to set certain attributes on or off for
  15.      your DOS files.  Specifically you can make a file hidden so that it
  16.      does not show up using dos DIR command, you can make a file read/only
  17.      so that it can be viewed but not changed or deleted, you can set a
  18.      file as a system file, or you can show the file as archived which
  19.      means that the file has been edited.  This is the fourth program I
  20.      have uploaded to GENIE;  I'm averaging a program a week.  For those
  21.      of you with CGA, you might have encountered a problem with the
  22.      DSKCHK.EXE program.  On 2/20/87 a new version of dskchk will be
  23.      uploaded which fixes this as well as provides options for monochrome
  24.      graphic monitors which will use patterns instead of colors.  It will
  25.      also allow option to pause program before checking disk so users with
  26.      only one disk drive will not be required to have the dskchk program
  27.      on each disk.
  28.  
  29.  
  30.      File Attributes
  31.      ────────────────
  32.      HIDDEN  --  Hidden files are files on your disk which do not show up
  33.                  using the Dos dir command.  This is one way to hide files
  34.                  with sensitive information.  Though you cannot see the
  35.                  file you can still access it by name thus you could still
  36.                  say  TYPE project.dat  to display the file.
  37.  
  38.      R/O     --  Read/Only files are files which you can view, but are not
  39.                  able to change or delete from disk.  If you have some
  40.                  important files which you do not want deleted or changed
  41.                  you may wish to make the file read/only
  42.  
  43.      SYSTEM  --  System files are files generally important to the correct
  44.                  operation of your system.  these files are often also
  45.                  position sensitive which means they may not work if moved
  46.                  to another place on disk.  Some copy protection formats
  47.                  use position sensitive files.  As a general rule, these
  48.                  files are also hidden and read/only as precautions.  An
  49.                  example of this would be the IO.SYS and MSDOS.SYS files
  50.                  found in the rood directory of disks.  Do not alter these
  51.                  files.
  52.  
  53.      ARCHIVE --  Archived files are files that have been edited.  When you
  54.                  create a file or edit a file, it will usually be archive.
  55.                  Some word processing programs use this information when
  56.                  making backups of files.  Another use for this is to set
  57.                  the archive flag off for a file, when the file has been
  58.                  changed the archive flag will be on so you will know if
  59.                  changes have been made.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.      Using FILEATTR.EXE
  75.      ──────────────────
  76.      Command is:   FILEATTR [[path]fn.ft] [/m] [/w]
  77.  
  78.      where fn.ft is the path, name, and type of the files you wish to
  79.      work with.  Wildcards are accepted, i.e.  *.pas  or  test??.bat.
  80.      the path and filename are all one parameter.  You may specify any
  81.      drive or directory in the path.  For example:
  82.           FILEATTR  C:\pascal\*.exe
  83.           FILEATTR  A:*.com
  84.      The first option is /m which indicates that you whis to use a
  85.      monochrome monitor.  The program will then run in black and white.
  86.      The second option is /w which indicates that you wish to wait before
  87.      scanning the indicated directory.  This is useful if you have only
  88.      one disk drive and dont want to place the program on the disk you are
  89.      checking.  An example is:
  90.          FILEATTR  A:\*.com  /m  /w
  91.      After entering this command, you will see the message: insert disk
  92.      and hit any key.  Then the directory will be scanned.
  93.  
  94.  
  95.      Defaults
  96.      ──────────
  97.      The defaults are:
  98.          FN = *.*  and scans the current directory.
  99.          color is on
  100.          wait is off
  101.      If you specify just filename the current directory is used.
  102.      Path and filename must be first parameter if used.
  103.      The  /w  and  /m  options may appear as first, second, or third parm.
  104.  
  105.  
  106.      Disclaimer
  107.      ────────────
  108.      You are free to distribute this program freely so long as all the
  109.      documentation and files are unchanged and included as a package and
  110.      the program is not sold for profit.  This software is provided as-is,
  111.      the user assumes all risks and liabilities in the use or inability
  112.      to use this program.
  113.  
  114.  
  115.      Comments
  116.      ─────────
  117.      I would appreciate hearing your comments, suggestions, design change
  118.      requests, reports of bugs, etc, etc, etc..   You may contact me at
  119.      GEmail address  B.MEIER   or write to:
  120.                                             Brian Meier
  121.                                             P.O. Box 111146
  122.                                             Arlington, TX  76006
  123.  
  124.