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>netlocname()</b> http://www.X-Hacker.org [<<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()

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