>George,
>I am still getting the same error:
>File is in USE.
>**************************
>
>When i am closing the whole foxpro development suite.
>and if i open my project again in foxpro to see. Then i can delete the file with out any problem.
>
>Do i need to also release any references from foxpro.
>before i click the delete.
>Thank you.
The easiest method that I can think of to handle this situation is to make both the references to the Scripting.FileSystemObject and the file properties of the form. That way you can use the reference to the file to call its Delete method with the .T. parameter. This should work.
I'm thinking that if the attribute if set to Read-Only may be causing the file is in use error.
George
Ubi caritas et amor, deus ibi est