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.
