Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Mkdir in tempfolder
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00537623
Message ID:
00541189
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform