Yes !!! Of course, the ERASE command. I went right by it while searching all the commands. Now the caveat.....it does work in an application if you exit with the "X", but if you have a button with an EXIT command it bypasses the "on close" commands in an RBA application. I am going to have to test this out more fully to see if this is a boo boo or just the way the EXIT command works. Maybe Razzak can enlighten us, as always. More experimentation is needed for sure.
Thanks for the tip, Jan.
Bob C.
| "jan johansen"
<[EMAIL PROTECTED]>
Sent by: [email protected] 04/30/2005 12:41 PM
|
|
Bob,
Razzak recently posted this very topic.
I believe that the R:Base command would be
ERASE *.$$$
Jan
-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected] (RBG7-L Mailing List)
Date: Sat, 30 Apr 2005 12:01:45 -0400
Subject: [RBG7-L] - Re: $$$ files
Thanks, Bill - are you sure that DEL is a valid rbase command for files? I tried this in an application close and it didn't work, and I could not find it in the help files. I am trying to keep a tight lid on my programs and not get into too many CMD or Command routines outside of R:base - it just adds to the confusion on a big network. I was hoping to keep this all in a compiled app...
For now I will use your suggestion, though.
Bob C.
| Bill Downall <[EMAIL PROTECTED]>
Sent by: [email protected] 04/30/2005 11:13 AM
|
|
Bob,
I have a little DOS batch file named DELCRAP.CMD
It runs occasionally as a "scheduled task."
It does not run through R:BASE, but through the command processor
CMD.EXE. Turns out all of the commands are also R:Base commands, so you
could concievably also run it at startup with an R:Base RUN command.
At the command line, if a $$$ file is "in use", it just gets skipped,
and all the others still get deleted. If you select a bunch of $$$ files
in explorer and "delete", at the first open file Windows gives up and
stops deleting any more, so this works a lot better.
REM DELCRAP.CMD
R:
cd \myappdir
DEL *.BAK
DEL *.$*
DEL *.DBG
DEL JUNK*.*
DEL *.VWR
EXIT
[EMAIL PROTECTED] wrote:
>
>
> I know I used to do this in DOS, but I am having a post-Friday night
> brain lock.
> On a cleanup from an application, I want to delete as many $$$ files as
> will allow. Wasn'e there a command in R:Base to delete files in the
> current directory? Why can't I remember this???
> How does anyone else clean up their directories?
> Thanks
> Bob C.
