Function NnetLogin() Foundation

Logs a user in to a file server.

Syntax
NnetLogin( <cUserName>               , ;
           <cPassword>               , ;
           [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
         ) --> nConnectID
Return

Returns a numeric value between 1 and 8 which is the connection ID for the file server. In case of an error 0 is returned.

Description

The third parameter <nConnectID> can be passed as a numeric only when a logical connection has been created using NnetAttach(). When a user is already logged in to the file server NnetLogin() causes a log out first.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.