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>nnetlogout()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETLOGOUT()
 Log out a user of one or all file servers
------------------------------------------------------------------------------
 Syntax

     NNETLOGOUT(<cServer>|<nConId>|<lAll>,[<lConnect>])
         --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cServer>  Designates the name of the file server on which a user is
     logged out.

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

     <lAll>  Allows a log out from all file servers if designated .T..

     <lAttach>  Designates whether or not the file server remains
     attached.  If a user logs out on a file server, the workstation and the
     server are detached.  If the parameter <lAttach> is designated .T., the
     workstation remains attached to <cServer>.

 Returns

     NNETLOGOUT() returns .T. if the log out has been successful.  If an
     error occurs (for example if the server name or the connection ID are
     invalid), the function returns .F..

 Description

     NOVELL NET LOGOUT
     NNETLOGOUT() allows you to log out a user on one or all file servers.

     To log out on a server, the server can be specified either by its name
     or its connection ID.  The connection ID of a server is returned by
     NNETATTACH() or NNETLOGIN().  To log out a user on all servers, the
     parameter <lAll> must be designated .T..

     Usually if you log out on a file server, the workstation connection is
     terminated (detached).  However ,if you want to remain attached to the
     related file server, you can pass the parameter <lAttach> with .T..

     To be able to perform a successful log in, at least one file server must
     be attached.  Therefore, when you use the function NNETLOGOUT(), the
     default server always remains attached and is independent of the
     parameter <lAttach>.

     NNETLOGOUT() can also be used to terminate a connection between a
     workstation and a file server (detach) when no user is logged in.

     Important!  When you call NNETLOGOUT(), all drive mappings for the
     specified server or all servers are terminated.  Files on related server
     volumes cannot be accessed, which can lead to data loss.  Before you use
     NNETLOGOUT(), make sure that all files on the network drives have been
     closed properly.

 Note

     .  The server name <cServer> must be passed in uppercase letters.

 Examples

     .  Close all databases, and then log out on all file servers:

        CLOSE DATABASES
        NNETLOGOUT(.T.)

     .  After you call NNETLOGOUT(), the default server is still
        attached.

     .  Log out on server NANGERTOOLS2:

        NNETLOGOUT('NANGERTOOLS2')

See Also: NNETLOGIN()

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