But here is my one, similar to Paul's. In the hope it is faster I get
the folder list first, iterating through each folder and aborting if
size not zero.
::FindZeroByte.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
call :sub %1
For /F "delims=" %%A in ('dir /B/S/AD %1 2^>NUL') do call :sub "%%~fA"
goto :eof
:sub
for /F "delims=" %%B in ('dir /B/OS/A-D "%~1\*" 2^>NUL'
) do if %%~zB. EQU 0. (echo %%~zB %%~fB) else (goto :eof)
::FindZeroByte.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::
A 3rd party app which works from the cmd line is fi.exe from Frank P.
Westlake. Hosted now by Ted Davis at http://gearbox.maem.umr.edu/fwu/
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.