Hi
How can I delete a folder and all its files?
thanks
Printable View
Hi
How can I delete a folder and all its files?
thanks
PS: Remember to Add a reference to Microsoft Scripting Runtime to your projectVB Code:
Dim FSO As FileSystemObject Set FSO = New FileSystemObject FSO.CreateFolder "E:\MC\New Folder3" MsgBox "Folder Created" FSO.DeleteFolder "E:\MC\New Folder3" MsgBox "Folder Deleted"