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:
00181037
Vues:
13
>>>I think I'll drop out here. You're much more qualified than I to address this stuff.
>>
>>Coward!
>
>Ed! I'm shocked! (Said with tongue firmly in-cheek). Seriously, your understanding of this is beyond mine. My reaction would be to get the connections and find a match of the server\volume part. Of course, that maybe half-a**ed, but that's all I know. You've demonstrated a deeper understanding of this issue than I.
>
>Geez, give a guy a compliment and he starts calling you names.:-)

No, you're just must better at explaining the API than I am, and I'm getting lazy in my old age... ;-)

For a single application where everyone used the same UNC to reference the files, the common UNC reference with NetFileEnum() is probably the best solution; this falls apart in a couple of cases - where the file can be opened with different UNCs is one, or where the app can be run locally, neatly avoiding the issue of UNCs entirely, is a second. The API provides a means to do this, but coding it on a one-off basis, especailly using VFP, is probably not the best resource investment I could think of. It'd probably take me longer to code and debug the one function than it would cost to buy a library with that capability and a whole lot more.

It's the same logic behind buying a framework, or SDT, or West Wind; given time and resources, you could write it yourself, but there's little reason to do so if you can get what you want, already working, for less money.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform