How to find a folder by date under vbs
Editor to share with you how to find folders through dates under vbs, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
On Error Resume Next
DtmTargetDate = "20020301000000.000000-420"
StrComputer = "."
Set objWMIService = GetObject _
("winmgmts:" & "!\" & strComputer & "\ root\ cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from Win32_Directory Where CreationDate >'" & _
DtmtargetDate & "'")
For Each objFolder in colFolders
Wscript.Echo objFolder.Name
Next
The above is all the contents of the article "how to find folders by date under vbs". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!