Skip to content

Instantly share code, notes, and snippets.

@davutg
Created September 26, 2017 10:10
Show Gist options
  • Save davutg/df16622232758f6d4251f28ae9d63b5c to your computer and use it in GitHub Desktop.
Save davutg/df16622232758f6d4251f28ae9d63b5c to your computer and use it in GitHub Desktop.
Move 0 byte files to another directory, helpful gist for folder integrations
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