[Toc][Index]

@ATTRIB


@ATTRIB[filename, [-nrhsda[,p]]]:  Returns a "1" if the specified file has 
the matching attribute(s); otherwise returns a "0".  The attributes are: 
        N   Normal (no attributes set) 
        R   Read-only 
        H   Hidden 
        S   System 
        D   Directory 
        A   Archive 
 
 The attributes (other than N) can be combined (for example 
 %@ATTRIB[MYFILE,HS]).  You can prefix an attribute with "-" to mean 
 "everything except files with this attribute." 
 Without the optional p as a third argument, ATTRIB will only return a 1 
 if all of the attributes match.  With the p, ATTRIB will return a 1 if 
 there is a partial match.  For example, if MYFILE.DAT has R, H, and A 
 attributes set: 

 
         %@attrib[myfile.dat,r]   returns 0 because there is not an exact match
 
         %@attrib[myfile.dat,r,p] returns 1 because there is a partial match
 
 
 If you do not specify any attributes, ATTRIB will return the attributes 
 of the specified file in the format RHSAD, rather than a "0" or "1". 
  Attributes which are not set will be replaced with an underscore.  For 
 example, if SECURE.DAT has the read-only, hidden, and archive attributes 
 set, %@ATTRIB[SECURE.DAT ] would return RH_A_. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs