home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 489 / alter.doc < prev    next >
Text File  |  1984-06-12  |  4KB  |  91 lines

  1.                                                    ALTER
  2.                                                    Command
  3.             
  4.     
  5.     Purpose:    This command allows the user to change 
  6.                 file attributes. 
  7.             
  8.     Format:     ALTER [d:][path]filename[/V][/N|/R/H/S/A|/B]
  9.             
  10.     Type:       Internal        External
  11.                                   ***
  12.             
  13.     Remarks:    This command can be used to mark files as 
  14.                 hidden, readonly, system or normal and to set
  15.                 or reset the archive bit. It is also possible
  16.                 to make subdirectory entries hidden. Hidden
  17.                 files/directories will not be displayed by 
  18.                 the TREE or DIR commands. The XDIR command 
  19.                 will display all files regardless of the files
  20.                 attributes; however, it will not display hidden
  21.                 directories. 
  22.             
  23.     Example:    ALTER c:\top\urgent.dat/v/r/h
  24.                 This command line displays the current version
  25.                 number and alters file C:\TOP\URGENT.DAT to be
  26.                 READ_ONLY and HIDDEN. Read only files cannot be
  27.                 changed or deleted.
  28.                 ALTER \top\secret/h
  29.             
  30.                 This command line alters the directory 
  31.                 \top\secret as a HIDDEN directory. This 
  32.                 directory can only be accessed by those who 
  33.                 know the path.
  34.             
  35.                 ALTER \top\secret\letter.007/v
  36.             
  37.                 This command line displays the current 
  38.                 attribute settings for the file and prompts
  39.                 the user for new attributes for the file.
  40.             
  41.                 
  42.             
  43.             
  44.                                     10-26a
  45.                                                    ALTER
  46.                                                    Command
  47.             
  48.             A sample display for this interactive mde
  49.             is shown:
  50.                 
  51.             C>ALTER \top\secret
  52.             
  53.             ALTER Version X.XX (C)Copyright T A Davis, 1983
  54.             
  55.             Attributes are (DRHB) for file \TOP\SECRET
  56.              
  57.             Enter new attributes (RHSNBA) or ENTER ? NA_
  58.             
  59.             Attributes are (DA) for file \TOP\SECRET
  60.             
  61.             The identifiers used to display the files 
  62.             attributes  are listed below:
  63.             
  64.                         R - READ_ONLY
  65.                         H - HIDDEN
  66.                         S - SYSTEM
  67.                         A - ARCHIVE SET
  68.                         D - SUB_DIRECTORY
  69.                         B - ARCHIVE NOT SET
  70.             
  71.             You may specify N for NORMAL as a parameter 
  72.             or as a response to the prompt. This identifier 
  73.             is not listed as an attribute for the file, 
  74.             but is offered as an easy means to remove all 
  75.             attributes.
  76.                             
  77.             Consult your DOS 2.00 manual, page C-4 for more 
  78.             information on file attributes. 
  79.                             
  80.             NOTES:
  81.             
  82.                 The attributes of a BASE directory cannot 
  83.                 be altered. You MUST specify at least 4 
  84.                 characters for the path\filename. 
  85.                 
  86.                 There is no way to display hidden 
  87.                 sub-directories. Care should be taken to ensure 
  88.                 that any directory once hidden, can be found.
  89.             
  90.                                                     10-26b
  91.