chitika

Sunday, September 11, 2011

vb: how to delete folder, remove directory?

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

No comments:

Post a Comment

For other hundreds of computer repair tips, tricks, tweaks, guide, help, please go to


http://website.edusoftmax.com