Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New TMPFILE= options, VFPA
Message
From
20/03/2019 19:42:58
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
20/03/2019 05:24:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667313
Message ID:
01667422
Views:
54
>>>>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 ;-)
Previous
Reply
Map
View

Click here to load this message in the networking platform