The way I do it is to cheat!
You can't delete any $$$ which is in use and there are always going to be a
couple in use while R:Base is running.
I do this:
SET ERROR MESSAGES 2077 OFF -- file not found
SET ERROR MESSAGES 2262 OFF -- failed deleting
SET ERROR MESSAGES 2926 OFF -- cannot delete R:Base temp file while in use
ERASE C:\WINDOWS\TEMP\*.$$$
and simply accept that there will sometimes/often/always be a few left but they
will get deleted the next time.
Regards,
Alastair.
----- Original Message -----
From: Charles Parks
To: RBASE-L Mailing List
Sent: Thursday, February 28, 2008 6:27 PM
Subject: [RBASE-L] - Timeout ERASE *.$$$
Would something like this be legal within a timeout application?
SET ERROR MESSAGES 2077 OFF
SET ERROR MESSAGES 2262 OFF
ERASE *.$$$
SET ERROR MESSAGES 2077 ON
SET ERROR MESSAGES 2262 ON
RETURN
If I have that active and the application times out then I get an error. If
the Erase *.$$$ command is remmed out then the error doesn't happen.
If this isn't permitted within a timeout then how do others handle the issue
of lingering .$$$ files?
Thanks,
Charlie
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.1/1302 - Release Date: 27/02/2008
16:34