Previous Topic: GetSpecialDir - Get the Special Directory Name and PathNext Topic: Is_Blk - Check if the File is a Block Special File


Is_Archive - Check if the File is Archived

Valid on NetWare, Windows, and Windows CE

The Is_Archive function checks the file for the specified attribute.

Function format:

Is_Archive(filename as String) as Boolean
filename

Identifies a file path.

The function returns TRUE if the file is archived; otherwise, it returns FALSE.

Example:

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