Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>set the attributes of a file.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Set the attributes of a file.
------------------------------------------------------------------------------

 Syntax

        GT_FAttrib(<cFileName>,<cAttributes>) --> lChangedOk

 Arguments:

      <cFileName> is the name of the file who's attributes are to be
      changed.

      <cAttributes> are the attributes to be set.

 Returns:

      A logical value, .T. if the file attributes were changed ok, .F.
      if not.

 Description:

      GT_FAttrib() can be used to set the attributes of a file.

      The available attributes that can be changed are:

                     -------------------------
                     Character       Attribute
                     -------------------------
                     A               Archive
                     H               Hidden
                     S               System
                     R               Read Only
                     -------------------------

      To set an attribute on use the upper case letter, to set the
      attribute off use the lower case letter. Any attribute that
      is not included in the attribute string is left as it is.

 Examples:

      // Make a file read only.

      lOk := GT_FAttrib("Life.42","R")

      // Turn on the archive attribute and the hidden attrubite, and
      // turn off the read only attribute.

      lOk := GT_FAttrib("Life.42","AHr")

 Source: SETFATTR.C

 Author:  Dave Pearson

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson