How to check if a file is not empty in Batch

batch-file, windows

Solution

for /f %%i in ("file.txt") do set size=%%~zi
if %size% gtr 0 echo Not empty

Problem

There are several ways google throws at me for checking if a file is empty but I need to do the opposite. ``` If (file is NOT empty) do things ``` How would I do this in batch?

Original source