hmm..how do i make a delete comand ignore certain files?
lets see, i have this code
Code:
Dim f() As IO.FileInfo
Dim FD As IO.FileInfo
f = dir.GetFiles
For Each FD In f
FD.Delete()
Next
Dim da() As IO.DirectoryInfo
Dim d1 As IO.DirectoryInfo
da = dir.GetDirectories
For Each d1 In da
DeleteDirContents(d1)
Next
End Sub
and well, i cant do On Error Resume next, because it just skips the entire delete. There are some files in the directory i am deleting files from that are being used by another process. how would i make it skip those files?
and btw..i didnt just copy paste this

I was gonna suggest On error resume next.