by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 1st August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Remove Directory using RemoveDirectory API
retval = RemoveDirectory("C:\Karthik\newtestdir")
If retval = 1 Then
MsgBox "C:\Karthik\newtestdir was successfully deleted."
Else
MsgBox "Deletion failed."
End If
End
End Sub