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>netrmtname()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NETRMTNAME()
 Determines the name of a server device for a local device
------------------------------------------------------------------------------
 Syntax

     NETRMTNAME(<nDevice>) --> cServerDevice

 Argument

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

 Returns

     NETRMTNAME() 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 REMOTE 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, NETRMTNAME() allows you to
     determine all the local devices that have been redirected to a server
     device.

 Note

     .  Using NETLOCNAME() allows you to determine the name of the
        corresponding local device.

 Examples

     Determine all the devices used by the server:

     nCounter     :=  0
     cDeviceName  :=  NETRMTNAME(nCounter)
     DO WHILE .NOT. EMPTY(cDeviceName)
        ? cDeviceName                     // Display server device
        nCounter     := nCounter +1
        cDeviceName  := NETRMTNAME(nCounter)
     ENDDO

See Also: NETLOCNAME()

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