Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New TMPFILE= options, VFPA
Message
From
20/03/2019 05:24:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/03/2019 00:18:12
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667313
Message ID:
01667382
Views:
65
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform