Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Mkdir in tempfolder
Message
 
À
08/08/2001 05:59:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00537623
Message ID:
00541189
Vues:
26
>OK,
>
>The app is international and is run on many different versions, but either way I think its 6 0f 1, half a dozen of the other. With the API call, you are guaranteed to get a path (which is good). Otherwise, a bespoke func could be written that uses GetEnv to ensure that a path is returned. Either are suitable I think.
>
Mace,

No, you're not guaranteed that a good path will be returned under Win2K. It does no checking for the validity of the path. Further, under that platform, I would certainly hesitate to start placing folders beneath the Windows directory. IMV, the safest way to go (and perhaps easiest), would be to call the GetTempPath() function since it will return a path and check to make sure that it isn't either the current directory or the Windows directory and that it actually exists. While you can check the OS() and avoid some of the additional code overhead that you'll incur, you'll reduce the overall complexity of it.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform