Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetmkdir()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETMKDIR()
 Creates a directory on a volume
------------------------------------------------------------------------------
 Syntax

     NNETMKDIR(<cPath>,<cRights>|<nRights>) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cPath>  Designates a directory on a server volume.  The path can
     contain a server name.

     <cRights>  Designates a character string that contains the rights
     for the new directory in form of symbols ( maximum rights under Netware
     2.x, inherited rights under Netware 3.x).

     <nRights>  Designates a numeric value that contains a bit map to
     determine the rights for the new directory ( maximum rights under
     Netware 2.x, inherited rights under Netware 3.x).

 Returns

     NNETMKDIR() returns .T. if the new directory has been created
     successfully.

 Description

     NOVELL NET MAKE DIRECTORY
     NNETMKDIR() allows you to create a new directory on any server volume.
     The volume must not be mapped to a drive.  <cPath> is the path
     designation for the new directory.  With the parameters <cRights> or
     <nRights>, rights can be assigned for the new directory.  The rights can
     be passed as a string where each character represents an attribute, or
     as a numeric value that results from a bit wise OR operation of the
     binary significance of the attributes.

     The possible rights are interpreted differently under Novell 2.x and
     3.x.

     The following table contains the rights under Netware 2.x:

     Table 23.10:  Rights Coding under Netware 2.x
     ------------------------------------------------------------------------
     Bit     Definition     Description
     ------------------------------------------------------------------------
     1       READ           Read files
     2       WRITE          Write to files
     3       OPEN           Open files
     4       CREATE         Create new files
     5       DELETE         Delete files
     6       PARENTAL       Create new directories
     7       SEARCH         Search files in directories
     8       MODIFY         Modify files or attributes
     ------------------------------------------------------------------------

     The first letter of each keyword under "Definition" represents the
     symbol for <cRights>.  Under Novell 2.x, the rights necessary to create
     a directory are the maximum rights a user can get for a directory.  Even
     if additional trustee rights are granted to a user, the maximum rights
     cannot be overwritten.

     The following table contains the possible rights under Netware 3.x:

     Table 23.11:  Rights Coding under Netware 3.x
     ------------------------------------------------------------------------
     Bit     Definition     Description
     ------------------------------------------------------------------------
     1       READ           Read files
     2       WRITE          Write to files
     3       RESERVED
     4       CREATE         Create new files
     5       ERASE          Delete files
     6       ACCESS CONTROL Trustee rights can be modified
     7       FILE SCAN      Search files in directories
     8       MODIFY         Modify files or attributes
     9       SUPERVISORY    All rights / can grant rights
     ------------------------------------------------------------------------

     The first letter of each keyword under "Definition" represents the
     symbol for <cRights>.  Under Novell 3.x, the rights that are granted
     when a user creates the directory specify which trustee rights are
     inherited from the parent directory, as long as the user has not been
     granted trustee rights for the directory.

 Note

     .  For detailed information about rights and security, see the
        Novell documentation.

 Example

     Create the directory VOL1:DATA/APRIL on the default server:

     IF NNETVER()<'3'
     NNETMKDIR('VOL1:DATA/APRIL','RWOCDPSM')
     ELSE
     NNETMKDIR('VOL1:DATA/APRIL','RWCEFM')
     ENDIF

See Also: NNETRENDIR() NNETRMDIR()

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