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>nnetsndcon()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSNDCON()
 Sends a message to the server console
------------------------------------------------------------------------------
 Syntax

     NNETSNDCON(<cMessage>,[<lNoSender>],
        [<cServer>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cMessage>  Designates the message that is sent to the server
     console.  The message can be up to 60 characters long (including
     information about the sender) and can only contain characters that have
     an ASCII value between 32 and 127.

     <lNoSender>  Designates an optional parameter that allows you to
     suppress the sender information (from ...) when designated (.T.).  When
     this parameter is designated .F., the sender information is generated
     automatically.  The default value is .F..

     <cServer>  Designates the name of the file server to which the
     message is sent.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETSNDCON() returns .T. if the message has been sent successfully.  If
     an error occurs, the function returns .F..

 Description

     NOVELL NET SEND CONSOLE
     NNETSNDCON() allows you to send a message (<cMessage>) of up to 60
     characters to the console of a file server.  The message is displayed by
     the file server on a connected screen.  If the parameter <lNoSender> is
     set to .F. or if no parameter is set, the message contains information
     about the sender.  The information consists of the word "from", the name
     of the sender, and the connection ID.  By passing <lNoSender> with .T.,
     the sender information can be suppressed.

     With the parameters <cServer> or <nConId>, the message can be sent to
     any attached file server.  The connection ID of a server is returned by
     NNETATTACH() or NNETLOGIN().

 Examples

     .  Send a message to the default server:

        IF NNETSNDCON('Start of the accounting system')
        ? 'Message sent successfully!'
        ELSE
        ? 'Message could not be sent'
        ENDIF

     .  Send a message to server MAIL under the wrong sender:

        NNETSNDCON('From Mick[99] : Hi, guys!',.T.,'MAIL')

See Also: NNETSNDALL() NNETSNDGRP() NNETSNDLOG() NNETSNDUSR()

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