HTBasic Help
×
Menu
Index

PROTECT

Changes file attributes.
 
 PROTECT file-specifier,protect-code
 
Usage:
PROTECT Mine$,"H"
PROTECT Name$,"R"
 
Example:           PROTECT.BAS
 
Description:
PROTECT is used to set file attributes. Three attributes are supported: read-only, system and hidden. The protect-code should be a numeric expression which contains zero, one or more of the characters "R", "S" and "H". Any attributes specified are turned on, any attributes not specified are turned off. For example:
 
PROTECT "file1",""  ! turn off all attributes
PROTECT "file2","S" ! System, but not R or H
 
See Also: