Created
June 9, 2017 20:26
-
-
Save sachintha81/c30ad6877e8a9d05bbe386a9541015f4 to your computer and use it in GitHub Desktop.
Batch script to delete all files in current and sub folders excluding certain extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
forfiles /s /c "cmd /c (if NOT @ext==\"bat\" del /s /q @path)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment