README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | michael schmidt |
| Level | Intermediate |
| User Rating | 5.0 (45 globes from 9 users) |
| Compatibility | VB 6.0 |
| Category | Miscellaneous |
| World | Visual 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