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>nnetnqsrvs()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETNQSRVS()
 Determines the number of print servers that service a print queue
------------------------------------------------------------------------------
 Syntax

     NNETNQSRVS(<cQueue>,[<lAll>],[<cServer>|<nConId>])
        --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates the name of the print queue that is accessed.

     <lAll>  Designates whether all print servers that have access to
     <cQueue> (.T.) or only the print servers that are currently logged in at
     <cQueue> (.F.) are counted.  The default value is .F..

     <cServer>  Designates the name of the file server on which <cQueue>
     is processed.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETNQSRVS() returns the number of print servers currently logged in at
     <cQueue> (<lAll> = .F.) or the number of print servers that have access
     to <cQueue> (<lAll> = .T.).  If an error occurs (for example, if the
     <cQueue> does not exist), the function returns -1.

 Description

     NOVELL NET NUMBER OF QUEUE SERVERS
     NNETNQSRVS() allows you to determine if any print server has access to a
     specified queue, if a print server is currently logged in at a queue, or
     if the queue is "dead".

 Note

     .  This function requires that the requesting user have access to
        the queue as a user or an operator.

 Example

     Set the queue LINEPRINT to LPT1 for the capture mode if it is serviced
     by at least one print server:

     IF NNETNQSRVS('LINEPRINT')>0
     NNETSETQ(1,'LINEPRINT')
     ELSE
     ? 'Queue is currently not serviced !'
     ENDIF

See Also: NNETQSRVS()

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