Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> attach</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ATTACH
------------------------------------------------------------------------------
 Purpose:
 Emulate the Novell ATTACH.EXE command line utility.

 Syntax:
 ATTACH <file server/>[ <username> <password>]

 Parameters:
 file server The name of the server to attach to.
 username    The optional user name.
 password    The optional password of the user.

 Returns:
 None.
 NWErrorGet() returns non-zero if an error occurs.

 Description:
 ATTACH attaches and optionally logs into a new file server.
 It emulates the Novell ATTACH.EXE command line utility almost exactly,
 except ATTACH.EXE will ask for a password.

 Example:
 // To attach to SERVER_3 and log in as user PETE with password TEST:
 #include "novlib.ch"
 ATTACH SERVER_3/PETE TEST
 // To perform the same operation using variables:
 #include "novlib.ch"
 UserStr = "SERVER_3/PETE"
 PassStr = "TEST"
 ATTACH &UserStr &PassStr

 Notes:
 If you attempt to log in as a user and fail, ATTACH will log you
 out of ALL file servers.

 For more information, see ATTACH.EXE in the NetWare reference manuals. This
 command works with CA-Clipper 5.X and CA-Visual Objects.
 NOVLIB50.PRG must be compiled and linked into your program when using this
 command.

See Also: FSWSAttach() FSWSDetach() FSPreferredConnGet() / FSPreferredConnSet() FSPreferredNameGet() / FSPreferredNameSet() FSWSLogin() FSWSLogout()

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