Last active
December 11, 2015 17:48
-
-
Save glucero/4636623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET SIZELIMIT=%2 | |
SET FILESIZE=%~z1 | |
SET FILEPATH=%~f1 | |
SET DKEY="OS|Windows|FileSize|%~nx1" | |
IF %FILESIZE% GTR %SIZELIMIT% ( | |
ECHO %DKEY% %FILESIZE% 2 "%FILEPATH% is greater than %SIZELIMIT%" | |
) ELSE ( | |
ECHO %DKEY% %FILESIZE% 0 "%FILEPATH% is smaller than %SIZELIMIT%" | |
) | |
GOTO :EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[checker] [path to file] [max bytes]
(file_size_check.bat c:\file.txt 1000)