@echo off
setlocal
set file="*.php"
set maxbytesize=1024
set maxmegabytesize=10485760


FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA

if %size% LSS %maxmegabytesize% (
    echo.File is ^< %maxmegabytesize% bytes >filetext1.txt
) ELSE (
    echo.File is ^>= %maxmegabytesize% bytes >filetext2.txt
)
