Vbs : delete all files with the same extension in a folder

The next two lines of code allow you to delete all files with a particular extension in a folder.

The example below will delete all of the .log files from the C:\Windows folder.

Romain Drouche
System Architect | MCSE: Core Infrastructure
IT infrastructure expert with over 15 years of field experience. Currently a Systems and Networks Project Manager and Information Systems Security (ISS) expert, I use my expertise to ensure the reliability and security of technological environments.

Leave a Comment