GTVT06
2007-08-17 17:39:41 UTC
Hello, I just have a quick noobie question that I'm sure is easy but I
can't figure it out. (I been trying to figure it out on my own for a
couple hours now)
I was just needing a simple code that will delete a file if it exists,
if not proceed with remaining code. I was thinking it would look
something like below.
dim File as string
File = "D:\MyworkFolder\sheet.csv"
If file.Exists(file) Then
file.Delete(file)
Else
Next
End If
can't figure it out. (I been trying to figure it out on my own for a
couple hours now)
I was just needing a simple code that will delete a file if it exists,
if not proceed with remaining code. I was thinking it would look
something like below.
dim File as string
File = "D:\MyworkFolder\sheet.csv"
If file.Exists(file) Then
file.Delete(file)
Else
Next
End If