Kill all text files except those starting with ~$
- From: "Dixie" <dixie@xxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 08:54:37 +1100
I am trying to write some code that when I exit my application kills all of
the text files in a certain folder. It is possible that some of those files
are locked because someone else is using them, in which case they will have
the first two letters of their name replaced with ~$. How can I write a
routine that will delete all the normal *.txt files, but not attempt to
delete the ~$ ones, which brings up an error message and prevents the
program from closing. I thought this would be easy, but I have not managed
to do it after quite a while trying.
dixie
.
- Follow-Ups:
- Re: Kill all text files except those starting with ~$
- From: MacDermott
- Re: Kill all text files except those starting with ~$
- From: Bob Quintal
- Re: Kill all text files except those starting with ~$
- Prev by Date: Return codes with reports
- Next by Date: Compile error causes MDE creation to fail in A97???
- Previous by thread: Return codes with reports
- Next by thread: Re: Kill all text files except those starting with ~$
- Index(es):
Relevant Pages
|