VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



DelTree

by michael schmidt (5 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

DelTree function using FileSystemObject. Removes folder regardless of files/folders/system/hidden contained within. Couldn't find any deltree code here that worked, most used the kill statement and such in a rather large sub, found this in MSDN...

Rate DelTree


Public Sub DelTree(ByVal vDir As Variant)

Dim FSO, FS


Set FSO = CreateObject("Scripting.FileSystemObject")

FS = FSO.deletefolder(vDir, True)


End Sub

Download this snippet    Add to My Saved Code

DelTree Comments

No comments have been posted about DelTree. Why not be the first to post a comment about DelTree.

Post your comment

Subject:
Message:
0/1000 characters