Previous Topic: Is_O_X - Check the File for the 'Others Execute' AttributeNext Topic: Is_SGID - Check the File for the 'Set Group ID' Attribute


Is_ReadOnly - Check the File for the 'Read Only' Attribute

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The Is_ReadOnly function checks the file for the specified attribute.

This function has the format:

Is_ReadOnly(filename as String) as Boolean
filename

Identifies a file path.

This function returns TRUE if the attribute is set; otherwise, the function returns FALSE.

Example: Is_ReadOnly function

If Is_ReadOnly(Argv(1)) Then
	print(Argv(1) + " indicates 'ReadOnly'.")
Else
	print(Argv(1) + " does not indicate 'ReadOnly'.")
End If