>>ITEM: N01014
>>DATE: October 18, 1997
>>TYPE: Bug
>>TITLE:
N_MAPDRIVE fails on previously mapped drive on Windows NT
>>PRODUCT(S):
NetLib (all versions) for Clipper
NetLib (all versions) for FoxPro
>>PLATFORM(S):
Windows NT 3.51 or 4.x with Microsoft Client for NetWare
>>SUMMARY:
N_MAPDRIVE sometimes fails when mapping to a Netware volume from
a machine running Windows NT (Workstation or Server) where the
drive letter has been already mapped.
>>MORE INFORMATION:
This is due to variations in the way that the Microsoft Client
and the Novell Client handle various Netware
APIs.
>>RESOLUTION/FIX:
Use N_MAPDRIVE(cDriveLetter,"") to make sure that the requested
drive letter is not already mapped. E.g.,
N_MAPDRIVE("F:", "") && ensure no previous mapping lOK = N_MAPDRIVE("F:", "SYS:SYSTEM")
- While Netware can accept either '\' or '/' as a directory or
servername separator, NetLib expects '\' as a directory
separator, and '/' as a servername separator, e.g.,
N_MAPDRIVE("F:", "SERVER1/SYS:SALES\APPL\DATA") && good
N_MAPDRIVE("F:", "SERVER1\SYS:SALES/APPL/DATA") && bad
- Netware assumes a '\' prefix following the volume name, e.g.,
-
"SYS:SYSTEM" is equivalent to "SYS:\SYSTEM"
However, the Microsoft Client sometimes requires the '\'
prefix explicitly included. Therefore, if this does not work:
-
N_MAPDRIVE("F:", "SYS:SALES\APPL\DATA")
Try this instead:
-
N_MAPDRIVE("F:", "SYS:\SALES\APPL\DATA")
>>EXAMPLE(S):
>>SEE ALSO:
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home