Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any API call to get the Base path from a UNC path?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00180686
Message ID:
00181002
Vues:
22
>>The problem is equivalence of shares. If I have two shares on my drive on a Win9x or WinNT box, one at the root called D_ROOT, and another of the \Data directory called D_DATA, the following shares are equivalent:
>>
>>D:\Data\MyData.DBF = \\MyServer\D_ROOT\DATA\MyData.DBF
>>D:\Data\MyData.DBF = \\MyServer\D_DATA\MyData.DBF
>>
>>Don't ask why there are two shares; the odds are either ACLs or poor planning are behind the insanity. Different users might use different shares for any number of reasons.
>>
>>In order to resolve the equivalence, you need to force the names to resolve in the same way; one way to do this is use the local context. It's a major PITA to code.
>
>I think I'll drop out here. You're much more qualified than I to address this stuff.

Coward!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform