vb: how to delete folder, remove directory?
Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
|
This site provides users with the information about vb, visual basic, vb6, how to delete folder, how to delete directory, how to remove folder, how to remove directory, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
How to delete folder, remove directory?
The following is the code to delete folder, remove directory:
Dim oFso As New Scripting.FileSystemObject
Dim mPath As String
mPath = "c:\test"
If oFso.FolderExists(mPath) Then
'The "True" is used to delete read-only files
oFso.DeleteFolder mPath, True
End If
|