Hi Rick,
Yep, get the same file doen't exist message.
>Have you tried:
>
>ERASE " abc.dbf"
>
>Rick
>>>>I have a situation where there are some files created that have a leading space, eg. " JUNK.DBF". Is there a way to delete this file programmaticly using VFP5? Delete file, !del, and RENAME seem to have no affect. I am able to delete them with Explorer but I don't want the user to have to deal with it.
>>>>
>>>>Thanks!
>>>
>>>for i=1 to adir(arr, " *.dbf")
>>> erase (arr[i,1])
>>>endfor
>>
>>Nope, reports back "File does not exist."
Jim Philippi
quando omni flunkus moritati