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>nnetmapinf()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETMAPINF()
 Determines the mapping for a drive
------------------------------------------------------------------------------
 Syntax

     NNETMAPINF([<cDrive>],[<lExpand>]) --> cPath

     Netware: 2.2 and 3.11

 Arguments

     <cDrive>  Designates the drive for which the mapping is determined.
     Without this parameter, NNETMAPINF() returns the mapping for the default
     drive.  Values from "A" to "Z" for a normal drive and "S1" to "S16" for
     a search drive are possible.

     <lExpand>  Designates how the search drives are handled.  When
     called without this parameter, or when the parameter is .F., the
     function returns the drive that corresponds to a search drive
     designator, followed by a colon and a period.  When called with
     <lExpand> equal to .T., NNETMAPINF() returns the network path assigned
     to the drive designator.  The default value is .F..

 Returns

     NNETMAPINF() returns the path that has been mapped to <cDrive> with the
     function NNETMAP().  For normal network drives, the return value
     contains the server name, the volume name, and the directory.  For
     search drives, the return value depends on the parameter <lExpand>.  If
     this parameter is set to .F., the function returns the drive, followed
     by a colon and a period.  If this parameter is set to .T., the complete
     network path is returned.  If <cDrive> contains a local drive,
     NNETMAPINF() returns the drive designator, followed by a colon.  An
     empty string is returned if the designated drive does not exist.

 Description

     NOVELL NET MAP INFORMATION
     In a Novell environment, NNETMAPINF() allows you to differentiate
     between local, network, or unassigned drive designators.  For a network
     drive, the function returns the server name, the volume name, and the
     path allocated to <cDrive>.  For a search drive, you can determine the
     drive designator.

 Examples

     .  Determine the mapping for drive C:

        ? NNETMAPINF('C')         // C: is a local hard disk

     .  Determine the mapping for drive J:

        ? NNETMAPINF('J')         // Login directory
        NANGERTOOLS2/SYS:LOGIN

     .  Determine the mapping for search drive S13:

        ? NNETMAPINF('S13')       // Returns: Z:.

     .  Determine the mapping for search drive S13 as a complete path:

        ? NNETMAPINF('S13',.T.)
        NNANGERTOOLS2/SYS:PUBLIC

See Also: NNETMAP() NNETMAPMOD() NNETSEARCH()

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