Get the App
SLTechnology News&Howtos  ›  Development  › 

How to find a folder by date under vbs

Shulou Source: shulou.com Published: 2022-06-03 07:46:16 11月15日 Update

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!

Tags: Articles documents folders dates content not much most more knowledge industry information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple Huawei Xiaomi OPPO Reno