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.

Vbs : delete files by extension in folder

Leave a Comment