Quote Originally Posted by KenHorse View Post
File is not RO.

Thanks for the suggestion OptionBase1 but that didn't work either.

I've even tried

Code:
Public Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileA" (ByVal lpFileName As String, ByVal bFailIfExists As Long) As Long
DeleteAFile TempString, 0

With the same (ineffective) results
See if there's an error...

Code:
If DeleteFile(TempString, 0) Then
Debug.Print "success"
Else
Debug.Print "Error: " & Err.LastDllError
If it prints 'Success', then the problem is outside of VB.