Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

support

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase


>>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")

 

     

  1. 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

     

  2. 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

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Dec 2001