README.md

December 4, 2022 ยท View on GitHub

DelTree

Description

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...

More Info

Submitted On
Bymichael schmidt
LevelIntermediate
User Rating5.0 (45 globes from 9 users)
CompatibilityVB 6.0
CategoryMiscellaneous
WorldVisual Basic
Archive File

Source Code

<font face="Verdana" size="2" color="#000000">
<b>Public Sub DelTree(ByVal vDir As Variant)<br>
Dim FSO, FS<p>
Set FSO = CreateObject("Scripting.FileSystemObject")<br>
FS = FSO.deletefolder(vDir, True)<p>
End Sub