[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NETLOCNAME()
 Determines the name of a local redirected device
------------------------------------------------------------------------------
 Syntax

     NETLOCNAME(<nDevice>) --> cDeviceName

 Argument

     <nDevice>  Designates the location within the DOS redirection table.

 Returns

     NETLOCNAME() returns the local name for the designated location in the
     DOS redirection table (<nDevice>), or a null string if no name is
     available.

 Description

     NETWORK LOCAL NAME
     Under PC LAN/MS-NET, server devices can be redirected to local devices
     using the NET USE <local> <remote> command.  DOS logs these redirections
     in its redirection table.  In this way, NETLOCNAME() allows you to
     determine all the local devices that have been redirected to a server
     device.

 Note

     .  Using NETRMTNAME() allows you to determine the name of the
        corresponding server device.

 Example

     Determine all the local devices that have been redirected to a server
     device:

     nCounter    :=  0
     cLocalName  :=  NETLOCNAME(nCounter)
     DO WHILE .NOT. EMPTY(cLocalName)
        ? cLocalName                      // Display local device
        nCounter    := nCounter +1
        cLocalName  := NETLOCNAME(nCounter)
     ENDDO

See Also: NETRMTNAME()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson