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>nnetdown()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETDOWN()
 Shuts down the file server
------------------------------------------------------------------------------
 Syntax

     NNETDOWN([<lMode>],[<cServer>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <lMode>  Designates whether  the file server is shut down only if
     the current workstation is the only logged in station (.F.) or if the
     server is shut down for all logged in stations (.T.).  The default value
     is .F..

     <cServer>  Designates the name of the file server that is used.
     Your workstation must be attached to <cServer>.

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

 Returns

     NNETDOWN() returns .T. if the down process has been established.  If an
     error occurs, the function returns .F..

 Description

     NOVELL NET DOWN
     NNETDOWN() allows you to shut down a file server.

     Important!  If the parameter <lMode> is designated .T., all logged
     in stations are logged out immediately.  Data that is still in the
     buffer cannot be saved.

     This function requires supervisor rights on the related file server.

 Examples

     .  Attempt to shut down the default file server:

        IF NNETDOWN()
           ? 'Successful!'
        ELSE
           ? 'Error'
        ENDIF

     .  Wait until the server can be shut down safely:

        WHILE .NOT. NNETDOWN()
        ENDDO

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