X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=z.bat;h=97ed52b7d2918da912f5706d2aa2948f59276350;hb=f02ab91775009e5b442cc5fd313c10117172fa5a;hp=67275e8ea58757bedebf9b63ca63c78d05de5b03;hpb=d36c52f72ba522ed2928294572e17dce8fab8559;p=16.git diff --git a/z.bat b/z.bat index 67275e8e..97ed52b7 100755 --- a/z.bat +++ b/z.bat @@ -1,3 +1,14 @@ @echo off +set file="%1" +set maxbytesize=65536 + +FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA + +if %size% LSS %maxbytesize% ( + echo.File is ^< %maxbytesize% bytes +) ELSE ( + echo.File is ^>= %maxbytesize% bytes +) + for /f %%A in ('dir ^| find "*.z?*"') do set cnt=%%A echo File count = %cnt%