Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New TMPFILE= options, VFPA
Message
De
20/03/2019 19:42:58
 
 
À
20/03/2019 05:24:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667313
Message ID:
01667422
Vues:
55
>>>>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...

Yupp...
Back in the days of 2 IDE drives on PIO, 2 SCSI controllers with tape drive, scanner and 7 SCSI drives ranging from 0.5 to 2GB each I wrote a class for a round-robin schema for "temp tables" with automatic cleanup - having cursors settle on different physical discs would have eliminated most of that code ;-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform