| Subject |
check to see if a file is in a dir before deleting it |
| From |
Charlie <tm@tc.com> |
| Date |
Sun, 18 Apr 2021 14:51:24 -0400 |
| Newsgroups |
dbase.getting-started |
I am trying to check to see if a file actually exists in a particular directory before deleting it. I can not figure this out.
The only thing I have tried is:
if xcsv+"\etext"+ltrim(str(ebno))+".csv" = true
msgbox( "Success" )
endif
Which is a futile attempt I realize.
Instead of the message box success I would delete it if it exists with this:
delete file xcsv+"\etext"+ltrim(str(ebno))+".csv"
I don't seem to be able to figure out a try, catch to do it.
I realize this is not much info but I don't have much to give. Any suggestions?
Charlie
|
|