Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Temporaly files
Message
 
 
To
13/12/2000 15:56:48
Arturo Valdez
SAYD - Software, Asesoria Y Desarrollo
Culiacán, Mexico
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00453045
Message ID:
00453090
Views:
22
>they need to be deleted cause they are so much !!!
>they are created, and created and never been deleted and they are so many files
>on the directory, and i think they delete automatically, but now i see dont.

As I said, VFP cleans up the temporary files if it exits gracefully. If it doesn't those files are orphans and you have to delete them manually. It sounds like there is something wrong within the system that is causing an error condition.

FWIW, you can cycle through the temp files and use the low level file functions (LLFF) to open them. If you can open them then that means VFP does not have them open and they are candidates for deletion. Immediately close them and delete them.
for lxx = 1 to adir(lafiles,"MyTempDir\*.tmp")
   lnhandle = fopen("MyTempDir\"+lafiles(lxx),2)  && open exclusively
   if lnhandle > 0 then
      =fclose(lnhandle)
      delete file (MyTempDir\"+lafiles(lxx))
   endif
endfor
You may have to debug this alittle as I did not test it.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform