Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Location of TMPFiles
Message
From
18/06/2003 16:28:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00799939
Message ID:
00801432
Views:
21
I agree with Craig that it's easier and more convenient to use the default windows temporary folder, but be sure to check it's existence on startup as in some weird cases where Win2000 has been reinstalled the users directories might have changed and the directory might be invalid or the user might not have read/write rights.

As far as the problem of temp files being left out is concerned, what I do is to have a custom function to assign temporary unique names. This function basically adds a prefix to sys(2015) and waits for a milisecond so as to avoid duplicate names. Each time the application is closed, it deletes all your application files from the temporary folder (based on that special prefix).

>Well actually the right way depends on the application. In my case, folks keep shutdown system power with my application running and leave 1000 of temp files in the TMP folder, which I have routines to cleanup every months or so..
Previous
Reply
Map
View

Click here to load this message in the networking platform