LOTUSSCRIPT LANGUAGE
Open fileName$ For Output As fileNum% Close fileNum%
SetFileAttr fileName$, ATTR_READONLY + ATTR_SYSTEM + _ ATTR_HIDDEN attr% = GetFileAttr(fileName$) If (attr% And ATTR_READONLY) Then msg$ = msg$ & " Read-Only " Else msg$ = msg$ & " Normal " End If If (attr% And ATTR_HIDDEN) Then msg$ = msg$ & " Hidden " If (attr% And ATTR_SYSTEM) Then msg$ = msg$ & " System " If (attr% And ATTR_VOLUME) Then msg$ = msg$ & " Volume " If (attr% And ATTR_DIRECTORY) Then msg$ = msg$ & " Directory " Print msg$
SetFileAttr fileName$, ATTR_NORMAL ' Reset to normal Kill fileName$
See Also