Domino Code Fragment

Code Name*
Check and set a File's Attributes
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.225.117.183
Description*
You can check a file's attributes and then set an attribute using LotusScript. For example, the following code checks whether a file is Hidden, and if it is, sets its Hidden attribute
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
%Include "LSCONST.LSS"
Dim iAttributes As Integer
iAttributes = GetFileAttr("C:\TEMP.TXT")
If (iAttributes And ATTR_HIDDEN) Then
Call SetFileAttr("C:\TEMP.TXT", ATTR_READONLY)
End If