VB Code:
Imports System.IO.Directory
'Declares
Public mydir As IO.Directory
Public path As String = Application.StartupPath
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
mydir.Delete(path & "\" & "myfolder", True)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mydir.CreateDirectory(path & "\" & "myfolder")
End Sub
very simple,Isn't ? the code explains itself.
setting delete value to true would delete all the contents of that folder.
this should get you started.