Jan, Just modify either method to handle what you need to do.
Dennis ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of jan johansen Sent: Tuesday, January 04, 2011 12:57 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: File Deletion Razzak/Dennis, Thank you for this information and I will implement them. However, these suggestions pertain only to the R:BASE generated $$$ files. What I am seeing is the C:\Temp folder is full of other information such as system updates, Adobe updates, etc. I've tried a few variations of commands to delete all the files and directories in the C:\Temp folder but am coming up short. Jan -----Original Message----- From: "A. Razzak Memon" <[email protected]> To: [email protected] (RBASE-L Mailing List) Date: Tue, 04 Jan 2011 13:48:36 -0500 Subject: [RBASE-L] - Re: File Deletion At 01:30 PM 1/4/2011, jan johansen wrote: >My turn. > >I have been dutifully trying to manage my TMP files. >However I had a user yesterday get the 'Out of Disk space' message. >After some digging, we found that the C:\Temp directory was crammed >full of stuff. > >So I need a way to clear out that directory on everyone's machine on >a daily basis. > >I'm thinking of adding a command line to my logon.bat that everyone >has to use, but I'm a little unclear as to the syntax. >DEL C:\Temp|*.* sounds right but I'd like some confirmation. Jan, Here is a routine that you can use to automatically take care of such housekeeping without having to worry about all error messages and the SCRATCH settings, etc. -- Start here ... SET VAR vFolderAndFiles TEXT = NULL SET VAR vFolderAndFiles = ((CVAL('SCRATCH'))+'\*.$$$') SET ERROR MESSAGE 2262 OFF SET ERROR MESSAGE 2263 OFF SET ERROR MESSAGE 2926 OFF DELETE &vFolderAndFiles SET ERROR MESSAGE 2926 ON SET ERROR MESSAGE 2263 ON SET ERROR MESSAGE 2262 ON CLEAR VARIABLE vFolderAndFiles -- End here ... Have fun implementing this technique as you application exit routine! Very Best R:egards, Razzak.

