A
Allen
When using FileInfo to delete a file, the file remains in the directory (not
deleted)
Dim foo as New FileInfo(strFileToDelete)
Try
foo.Delete()
Catch ex as IOException
'Open file handler
End Catch
The file exists and is valid. The path exists and is valid. No file
attributes are set except for ARCHIVE. I have permission to read and write
to the directory.
No exception is thrown (ex = Nothing) yet the file is not deleted from the
directory.
Any suggestions?
Thanks in advance.
Allen
deleted)
Dim foo as New FileInfo(strFileToDelete)
Try
foo.Delete()
Catch ex as IOException
'Open file handler
End Catch
The file exists and is valid. The path exists and is valid. No file
attributes are set except for ARCHIVE. I have permission to read and write
to the directory.
No exception is thrown (ex = Nothing) yet the file is not deleted from the
directory.
Any suggestions?
Thanks in advance.
Allen