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.


Reply via email to