Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - @echo off
- setlocal
- set file="test.cmd"
- set maxbytesize=1000
- 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
- )
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    