Hi
Take an object as a file and set this object as that file which u
hv to delete and then use <file object>.delete
Take care,
Preeti
On Wed, 20 Nov 2002 Daniel Menoni wrote :
>After working with a filesystem object I am having problems
>deleting the
>file. While running the code, I get Error 70, Permission Denied
>when I
>attempt to delete the file. After stopping the debugger, I am
>unable to
>delete the file manually from the file system untill I close
>Visual Basic.
>
>
>Dim fso As New FileSystemObject
>Dim ts As TextStream
>
>Set ts = fso.OpenTextFile(strFileName)
>strLine = Trim(ts.ReadLine)
>Do While Not ts.AtEndOfStream = True
> 'Some code here
>Loop
>
>ts.Close
>Set ts = Nothing
>fso.DeleteFile (strFileName)