Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a GETDIR equivalent that would handle UNCs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00119811
Message ID:
00119871
Vues:
20
>Thank you Mark, I found it!
>
>Although my question is very similar to the one in the discussion, I currently use the UNC (\\server\service\table) to open all of my database/tables without a problem. However, here is the scenario:
>
>You can perform a GETFILE() and are allowed to select any file any where. Obviously GETFILE() makes a direct call some operating system's equivalent function. However, if you use GETDIR(), it does not allow you to go outside of the mapped drives or the current default drive (which can be a UNC). This leads me to think that GETDIR() is a VFP "ONLY" function.
>
>Have you ever experienced this? Am I the only person who has ever had such a need?

I know your problem exactly. This is a limitation of GetDir(). Maybe our UT friend here, George Tasker, has a WinAPI function that will get this for use. For now, I am using a 3rd party library, NetLib, to return this information from a drive letter. e.g., it converts *F* to ServerName\Volume. Then I can create the rest.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform