SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer to use a DOS function. Feels cleaner to me.
SET SIZELIMIT=1000 CALL :FileSize %1 FileSize IF %FileSize% GTR %SIZELIMIT% Echo Large file GOTO :EOF :FileSize SET %~2=%~z1 GOTO :EOF