
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetmapmod()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NNETMAPMOD()
Determines the mapping mode for a drive
------------------------------------------------------------------------------
Syntax
NNETMAPMOD([<cDrive>]) --> nMode
Netware: 2.2 and 3.11
Argument
<cDrive> Designates the drive (A to Z, S1 to S16) for which the
mapping mode is determined. Without this parameter, NNETMAPMOD() uses
the default drive.
Returns
NNETMAPMOD returns a numeric value that contains the mapping mode for
<cDrive>.
Description
NOVELL NET MAP MODE
NNETMAPMOD() allows you to determine the mapping mode for a specified
drive. For example, you can determine if a drive is allocated to a
network directory, if the mapping is temporary or permanent, or if a
local drive is "masked". For valid return values, see the following
table:
Table 22.1: NNETMAPMOD() return values
------------------------------------------------------------------------
Value Hex Bin Definition
------------------------------------------------------------------------
0 0 00000000 Drive unknown
1 1 00000001 Drive mapped permanently
2 2 00000010 Drive mapped temporarily
128 8 010000000 Local drive
129 8 110000001 Drive mapped permanently, initially local drive
130 8 210000010 Drive mapped temporarily, initially local drive
------------------------------------------------------------------------
Examples
. Determine the mapping mode for drive Y:
? NNETMAPMOD('Y') // Returns: 0
Drive Y: is currently unavailable.
. Determine the mapping mode for drive J:
? NNETMAPMOD('J') // Returns: 1
Drive J: has been mapped permanently.
See Also: NNETMAP() NNETMAPINF() NNETSEARCH()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson