Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Location of TMPFiles
Message
De
18/06/2003 16:28:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00799939
Message ID:
00801432
Vues:
22
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..
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform