Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with GetFile
Message
De
04/07/2007 23:51:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01237796
Message ID:
01237813
Vues:
20
>Hi.
>I'm using GetFile to locate a Picture and store its location for future processing. It may store it as "K:\MyLocation\MyPicturs"
>
>Howver, if another user has a different mapped drive, or is accessing Remote Desktop, the location may make no sense.
>
>Is there a more robust command that can be used ?

I remember discussing this problem with someone. The proposed solution was to copy the image to a local directory (or a common location) relative to wherever the app's database resides. Probably just below the data directory. Then if the original file is not available for whichever reason, including a different drive mapping, UNC to an absent machine or whatever, show the local copy.

The things get a bit complicated if both files exist but are different - then I assume some logic comparing their sizes, resolutions, timestamps etc may help decide which one to show.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform