home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / GLEN / UNEEDME.ZIP / ALTER.DOC < prev    next >
Text File  |  1985-06-28  |  4KB  |  95 lines

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