Created
September 26, 2017 10:10
-
-
Save davutg/df16622232758f6d4251f28ae9d63b5c to your computer and use it in GitHub Desktop.
Move 0 byte files to another directory, helpful gist for folder integrations
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
for %%i in (*.txt) do ( | |
echo %%i %%~z%i | |
if %%~z%i LSS 1 ( | |
echo.move %%i | |
move "%%i" "C:\EmptyFiles\%%i" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment