Created
May 28, 2019 11:58
-
-
Save pmcfernandes/edd0bc599a52122419c7143ed01276d5 to your computer and use it in GitHub Desktop.
Delete all empty files from a directory recursively (Normally files cleaned by ESET File Security)
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
Get-ChildItem -Path C:\HostingSpaces -Recurse -Include *.php | Where {$_.Length -eq 0} | remove-Item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment