Delete a File using DeleteFile API
Delete a File using DeleteFile API
Rate Delete a File using DeleteFile API
(2(2 Vote))
Private Sub Form_Load()
' Delete the file C:\karthik\waste.txt
Dim rtval As Long ' return value
rtval = DeleteFile("C:\karthik\waste.txt")
If rtval = 1 Then
MsgBox "File deleted successfully."
Else
MsgBox "Error"
End If
End
End Sub
Delete a File using DeleteFile API Comments
No comments yet — be the first to post one!
Post a Comment