We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim fso, OlderThanDate Dim folder, folderCollection, subFolder OlderThanDate = DateAdd("d", -60, Date) Set fso = CreateObject("Scripting.FileSystemObject") Set folder = fso.GetFolder("D:\archive\") Set folderCollection = folder.SubFolders For Each subFolder In folderCollection If subFolder.Name <> "Log" Then If subFolder.DateCreated < OlderThanDate Then fso.DeleteFolder subFolder.Path, True Else fso.DeleteFolder subFolder.Path, False End If End If Next
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.