[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson