home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DISK / FDA.ZIP / FDA.MAN < prev    next >
Encoding:
Text File  |  1991-09-15  |  8.5 KB  |  197 lines

  1.  
  2.  
  3.  
  4.                           FILE AND DIRECTORY ATTRIBUTES
  5.                                    VERSION 1.00
  6.                                    USAGE MANUAL
  7.  
  8.  
  9.     DESCRIPTION
  10.  
  11.          This  program  allows  one  to change the  attributes  of  files  and 
  12.          directories  more easily.  The attributes affected are: Hidden,  Read 
  13.          Only, Archive, and System.
  14.  
  15.     GENERAL COMMAND FORMAT
  16.  
  17.          FDA is used from the command line prompt.  Its command format is:
  18.  
  19.                    FDA filename [options] [switches]
  20.  
  21.          The filename parameter is the name of the file or directory you  wish 
  22.          to affect and may include either of the DOS wild card characters ('*' 
  23.          or  '?').   Both [options] and [switches] are one (or  more)  of  the 
  24.          items described below.
  25.  
  26.     OPTIONS
  27.  
  28.          Options  are  used  to tell FDA how to  behave.   They  perform  such 
  29.          functions as displaying a help screen, controlling weather only files 
  30.          or  directories  are affected, if output should be displayed  to  the 
  31.          screen, etc.  The complete list, with descriptions, is shown below.
  32.  
  33.                 OPTION       DESCRIPTION
  34.                 /help        Display a help screen (do not change anything).
  35.                   /f         Affect only files.  Useful when using wild cards
  36.                              and you only want to change file attributes.
  37.                   /d         Affect only directories.  As with /f, useful when
  38.                              using wild cards and you only want to change 
  39.                              directory attributes.
  40.                   /q         Quiet mode.  Do not write info on files to the 
  41.                              screen.  Useful in batch files.
  42.                   /p         Don't pause after each screenful of data.  FDA 
  43.                              usually pauses the screen after it is full, but
  44.                              this switch causes it to continually scroll.
  45.  
  46.          You  may  specify  as  many  options as you  wish,  but  if  you  use 
  47.          conflicting  parameters  only  the last of them  will  be  recognized 
  48.          (specifying '/f' and then '/d' is like specifying only '/d').  If FDA 
  49.          finds  the  '/help'  option anywhere in the  command  line,  then  no 
  50.          attributes will be affected and a help screen will be displayed.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.     SWITCHES
  59.  
  60.          Switches are used to tell FDA which attributes to change.  There  are 
  61.          four attributes which each file or directory may have: 
  62.  
  63.               Hidden         The file is not shown in the directory and can 
  64.                              not be deleted or renamed.  MOST programs 
  65.                              willstill acknowledge a hidden file as being 
  66.                              there, but some do not.
  67.               Read Only      With this attribute set, the file may not be 
  68.                              renamed, written to, or deleted.
  69.               Archive        Archive is kind of a special attribute.  It 
  70.                              serves no real purpose other than to be used by 
  71.                              some backup programs.  DOS's BACKUP program, 
  72.                              among others, can be set to affect only files 
  73.                              with the archive bit set.
  74.               System File    The system file attribute is very special.  It
  75.                              marks a file as being "necessary to the operating
  76.                              system" (DOS).  If a file is marked system, it 
  77.                              has the properties of a file with both the hidden 
  78.                              and read only attributes set, but is also treated 
  79.                              by DOS as a file which contains system info.  It 
  80.                              is not recommended that you set a directory to 
  81.                              system unless you have system info in it (for 
  82.                              example: COMMAND.COM).
  83.  
  84.  
  85.          There are eight switches that allow you to set the attributes.   They 
  86.          consist  of  a  forward slash ('/'), a letter  ('h',  'r',  'a',  's' 
  87.          respectively),  and  a plus ('+') or minus ('-') sign.  A  plus  sign 
  88.          sets  the attribute and a minus sign turns it off.  For  example,  to 
  89.          set a file read only and visible, the switches you would use would be 
  90.          '/r+' and '/h-'.  The full set of switch strings is:
  91.  
  92.               /h+   Set the file/directory visible
  93.               /h-   Set the file/directory hidden
  94.               /r+   Set the file/directory read only
  95.               /r-   Set the file/directory read write
  96.               /a+   Set the file/directory archived
  97.               /a-   Set the file/directory un-archived
  98.               /s+   Set the file/directory system
  99.               /s-   Set the file/directory non-system
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.     EXAMPLES
  108.  
  109.          Suppose  you  wanted  to  set the  file  MYFILE.DAT  in  the  A:\JUNK 
  110.          directory to hidden and read write.  You would type:
  111.  
  112.               FDA a:\junk\myfile.dat /h+ /r-
  113.  
  114.          If  you wanted to set all the files in the current directory to  read 
  115.          only you would type:
  116.  
  117.               FDA *.* /f /r+
  118.  
  119.     NOTES
  120.  
  121.          1. When using FDA, each parameter must be separated by a space or the 
  122.             program will not acknowledge them.  For example, if you didn't put 
  123.             a space between two switches ('/h+/r-' instead of '/h+ /r-'),  FDA 
  124.             would  not  recognize  either  of  them  and  would  leave   those 
  125.             attributes unchanged.  So, general rule of thumb:  Each  parameter 
  126.             must  be  treated  like it was a word in a  sentence;  forget  the 
  127.             spaces and you get nonsense.
  128.  
  129.          2. FDA  always  treats the first parameter of the command line  as  a 
  130.             file  name  (except for '/help').  If you specify any  options  or 
  131.             switches,  you MUST include a file name or FDA will  get  confused 
  132.             and  throw up the help screen.  General knowledge:   Whenever  FDA 
  133.             gets  confused, it will throw up the help screen hoping  you  will 
  134.             recognize any errors.
  135.  
  136.          3. If  you want to view the attributes of any file, simply  type  FDA 
  137.             with  the file name and NO options.  This will display the  normal 
  138.             info, but will not change any attributes.  If you wish to  display 
  139.             all the file and directory names in your current directory, simply 
  140.             type  FDA by itself and press enter.  To use any options (such  as 
  141.             '/f') remember, you MUST specify a file name.  So, to display  all 
  142.             the  file names with no directories, type 'FDA *.* /f'  and  press 
  143.             enter.
  144.  
  145.          4. FDA  cannot  affect  the '.' and '..' directory  entries  in  sub-
  146.             directories.   If you set any attributes on these files,  such  as 
  147.             hidden, DOS will treat these entries as if they had no  attributes 
  148.             set and, in the example, they would still be visible.
  149.  
  150.          5. The  companion program to this one is SDIR.EXE, my Substitute  DIR 
  151.             Utility.   It  function  like  DOS's  DIR,  bit  has  some   extra 
  152.             parameters
  153.                    /f   Show file only
  154.                    /d   Show directories only
  155.                    /h   Show hidden files/directories too
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.     DISCLAIMER
  164.  
  165.          I  have  used  this program for a while on both my  machine  and  the 
  166.          machines where I work.  Although I have not had any problem with  it, 
  167.          I  do  not take responsibility for any adverse effects or  damage  to 
  168.          files  resulting  from viruses, programming errors, or  other  causes 
  169.          arising from the use of this program.
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.     BUGS
  178.  
  179.          If you find any bugs in this program, please send me a letter at  the 
  180.          address  below  explaining  what is wrong and I  will  incorporate  a 
  181.          correction into future versions of this program.
  182.  
  183.     REGISTRATION
  184.  
  185.          If  you  like this program, please help support  the  development  of 
  186.          others  by  sending  a  contribution (usually  about  $5.00)  to  the 
  187.          following address:
  188.  
  189.                    Diana Struzinski
  190.                    209 Skelton Drive
  191.                    New Castle, DE  19720
  192.  
  193.          Thank  you  for using this program and for any contribution  you  can 
  194.          make.
  195.  
  196.  
  197.