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>nnetaddqsv()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETADDQSV()
 Adds a print server
------------------------------------------------------------------------------
 Syntax

     NNETADDQSV(<cQueue>,<cPServer>|<aPServer>,[<cServer>|
        <nConId>) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates a print queue on the default server or on
     <cServer>|<nConId>.

     <cPServer>  Designates the name of a print server that is added as
     the server for <cQueue>.

     <aPServer>  Designates a number of elements of the type string.
     Each element contains the name of a print server that is added as the
     server for <cQueue>.

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

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

 Returns

     NNETADDQSV() returns the number of print servers that have been added
     successfully as servers of <cQueue>.  A value of 0 indicates that no
     server has been added.

 Description

     NOVELL NET ADD QUEUE SERVER
     NNETADDQSV() allows you to add one or more print servers as servers of a
     print queue.  To add one server, the name of the server must be passed
     in <cPServer>.  To add more servers, an array containing all print
     server names can be passed in <aPServer>.  With the parameters <cServer>
     or <nConId>, the operation can be performed on any attached server.  The
     connection ID of a server can be determined with NNETATTACH() or
     NNETLOGIN().

     Supervisor rights are required on the related file server to add a print
     server as the server for a queue.

 Note

     .  NNETADDQSV() is a high level function based on the low level
        functions of the bindery access.  The CA-Clipper source code can be
        found on the product disks.

 Examples

     .  Add the print server PSERVERTOOLS1 as the server for the queue
        LINEPRINTER:

        IF NNETADDQSV('LINEPRINTER','PSERVERTOOLS1')>0
        ? 'Print server added successfully!'
        ELSE
        ? 'Error!'
        ENDIF

     .  Add the print servers PSERVERTOOLS1 and PSERVERDEV1 as servers
        for the queue LINEPRINTER:

        NNETADDQSV('LINEPRINTER',{'PSERVERTOOLS1','PSERVERDEV1'})

See Also: NNETREMQSV()

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