Vincent88
Active Member
- Joined
- Mar 5, 2021
- Messages
- 382
- Office Version
- 2019
- Platform
- Windows
- Mobile
Hi, How to have a script to count the number of folders to delete then inplement the deletion with the following script.
The folders' names are of yyyy-mm-dd format as pictured.
The folders' names are of yyyy-mm-dd format as pictured.
VBA Code:
For /D %%F in ("%windir%\ABC\Log\*-*-*") do rd /s /q "%%F"