Emmitt,

Thank you. 

That appears to work to remove files in each of the directories under
the C:\Temp directory but does not remove the directories.

That may be all I need but if you have any other suggestions they
would be greatly apprecieated.

Jan


 


-----Original Message-----
From: "Emmitt Dove" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Tue, 4 Jan 2011 14:03:14 -0500
Subject: [RBASE-L] - Re: File Deletion


To elaborate:
 
DEL C:\TEMP /S /Q
 
The S says to recurse subdirectories, the Q says don’t ask for 
confirmation.
 
The switches work at the CMD level, not in RBGxx.
 
Emmitt Dove
Converting Systems Architect
Evergreen Packaging, Inc.
[email protected]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[email protected]
 
From: [email protected] [mailto:[email protected]] On Behalf Of jan johansen
Sent: Tuesday, January 04, 2011 13:57
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.


 

Reply via email to