G
Guest
Can anyone help me??
Im having trouble to delete and then create files, that i've emailed??.
1)
Im sending a file using cdo.message class
Dim CDOMsg = New CDO.Message
With CDOMsg
.To = "(e-mail address removed)"
.From = "(e-mail address removed)"
.Subject = "FileTest"
.HTMLBody = "<html>See attached file.</html>"
.AddAttachment("C:\test.txt")
.Send()
End With
2)
Deleting the file
If File.Exists(C:\test.txt) Then
File.Delete(C:\test.txt)
End If
3)
Then i tried to create a new file, with the same name. But i get a
permission denied??
I have found out that it's probely is the cdo.message, who still got a
refferance to the file, but how do i remove this refferance to the cdo??
Thanks
Im having trouble to delete and then create files, that i've emailed??.
1)
Im sending a file using cdo.message class
Dim CDOMsg = New CDO.Message
With CDOMsg
.To = "(e-mail address removed)"
.From = "(e-mail address removed)"
.Subject = "FileTest"
.HTMLBody = "<html>See attached file.</html>"
.AddAttachment("C:\test.txt")
.Send()
End With
2)
Deleting the file
If File.Exists(C:\test.txt) Then
File.Delete(C:\test.txt)
End If
3)
Then i tried to create a new file, with the same name. But i get a
permission denied??
I have found out that it's probely is the cdo.message, who still got a
refferance to the file, but how do i remove this refferance to the cdo??
Thanks