Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New TMPFILE= options, VFPA
Message
De
20/03/2019 05:24:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/03/2019 00:18:12
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667313
Message ID:
01667382
Vues:
67
>>>Even smarter would be a way to change temp path for any new item while keeping the list of currently open temp files on previously set paths via SET command. Had issued such a enhancement wish, MS reaction was along the lines of "interesting idea, makes technical sense, but we won't go for it - usual user does not face such problems..."
>
>Looks like he just did that too, using a new SYS(9021) function:
>
>
SYS(9021,"TMPFILES","%TEMP%\%VFPPROCESSID%")   &&use in main.prg to change the TMPFILES= setting 
>&& or SYS(9021,"TMPFILES",ADDBS(GETENV("TEMP"))+TRANSFORM(_VFP.PROCESSID))
>
I wish we had this 20 years ago...
I assume the temp files already open remain where they were, and that ALL of them get cleaned up on exit. Cleaning the folders which were created like this would be a bonus (i.e. close all, erase all, remove folder).

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform