Category : Unprotects for Games and Such
Archive   : UNPROT2.ZIP
Filename : ALTER.DOC

 
Output of file : ALTER.DOC contained in archive : UNPROT2.ZIP
ALTER
Command



Purpose: This command allows the user to change
file attributes.

Format: ALTER [d:][path]filename[/V][/N|/R/H/S/A|/B]

Type: Internal External
***

Remarks: This command can be used to mark files as
hidden, readonly, system or normal and to set
or reset the archive bit. It is also possible
to make subdirectory entries hidden. Hidden
files/directories will not be displayed by
the TREE or DIR commands. The XDIR command
will display all files regardless of the files
attributes; however, it will not display hidden
directories.

Example: ALTER c:\top\urgent.dat/v/r/h

This command line displays the current version
number and alters file C:\TOP\URGENT.DAT to be
READ_ONLY and HIDDEN. Read only files cannot be
changed or deleted.

ALTER \top\secret/h

This command line alters the directory
\top\secret as a HIDDEN directory. This
directory can only be accessed by those who
know the path.

ALTER \top\secret\letter.007/v

This command line displays the current
attribute settings for the file and prompts
the user for new attributes for the file.





10-26a
ALTER
Command

A sample display for this interactive mde
is shown:

C>ALTER \top\secret

ALTER Version X.XX (C)Copyright T A Davis, 1983

Attributes are (DRHB) for file \TOP\SECRET

Enter new attributes (RHSNBA) or ENTER ? NA_

Attributes are (DA) for file \TOP\SECRET

The identifiers used to display the files
attributes are listed below:

R - READ_ONLY
H - HIDDEN
S - SYSTEM
A - ARCHIVE SET
D - SUB_DIRECTORY
B - ARCHIVE NOT SET

You may specify N for NORMAL as a parameter
or as a response to the prompt. This identifier
is not listed as an attribute for the file,
but is offered as an easy means to remove all
attributes.

Consult your DOS 2.00 manual, page C-4 for more
information on file attributes.

NOTES:

The attributes of a BASE directory cannot
be altered. You MUST specify at least 4
characters for the path\filename.

There is no way to display hidden
sub-directories. Care should be taken to ensure
that any directory once hidden, can be found.



10-26b
ub-directories. Care should be taken to ensure
that any directory once hidden, can be found.





  3 Responses to “Category : Unprotects for Games and Such
Archive   : UNPROT2.ZIP
Filename : ALTER.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/