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>nnetdskuse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETDSKUSE()
 Determines the server disk capacity occupied by a user
------------------------------------------------------------------------------
 Syntax

     NNETDSKUSE([<cUser>],[<nVol>|<cVol>],[<cServer>|
        <nConId>])   --> nKByte

     Netware: 2.2 and 3.11

 Arguments

     <cUser>  Designates the name of the user whose disk capacity is
     determined.  The default value designates the logged in user.

     <nVol>  Designates the volume number.  Under Novell, volume numbers
     start with 0.  This parameter is only important if the specified file
     server runs under Netware 3.x.

     <cVol>  Designates the volume name.  A server name is not allowed.
     This parameter is only important if the specified file server runs under
     Netware 3.x.

     <cServer>  Designates the name of the file server where the used
     disk capacity is determined.  Your workstation must be attached to
     <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETDSKUSE() returns the disk capacity in kByte on the specified file
     server or volume occupied by <cUser>.

 Description

     NOVELL NET DISK SPACE IN USE
     NNETDSKUSE() allows you to determine the disk capacity on a file server
     occupied by a user.  Under Netware 2.x and Netware 3.x, the function
     returns the total of the used disk capacity over all volumes on the
     specified file server when it is called without the parameter
     <nVol>|<cVol>.  Under  Netware 3.x, it is possible to determine the
     capacity for a specific volume by passing the volume number <nVol> or
     the volume name <cVol>.  With the parameters <cServer> or <nConId>, the
     occupied capacity on any attached file server can be determined.  The
     connection ID of a server is returned by NNETATTACH() or NNETLOGIN().

 Example

     Determine the total occupied disk capacity for user MIKE under Netware
     3.x for all volumes.  Also determine the total occupied disk capacity
     for user MIKE for any Netware version:

     IF NNETVER()>'2'
     FOR i = 0 TO NNETVOLNUM()
     ? NNETVOLNAM(i),NNETDSKUSE('MIKE',i)
     NEXT i
     ? '======================'
     ENDIF
     ? 'Total: ',NNETDSKUSE('MIKE')

See Also: NNETUSRFRE() NNETVOLNAM() NNETVOLNUM()

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