Sub LoopKill(sDestFile As String)
If ValidateLocations(sDestFile) Then
Kill (sDestFile)
sSleep (1000)
End If
End Sub
Public Function ValidateLocations(ByVal strLoc As String) As Boolean
Dim lngType As Long
ValidateLocations = Len(Dir(strLoc, lngType)) > 0
End Function
Function fncDelFile()
Kill ("C:\xx\xx\filename2delete.*")
End Function