@echo off REM "checksize.cmd" Written by David Cain 21-08-2015 REM Tests file size of a file passed as the first parameter REM and the test size as the second parameter REM Originally created to test Electronic Directory database to avoid sending empty file REM REM Last Edited 24-08-2015 DMC - Tidied up REM set testsize=%2 IF %~z1 LSS %testsize% goto abort IF %~z1 GTR %testsize% goto happy goto cleanup goto :eof :abort set whether2do=no goto cleanup goto :eof :happy set whether2do=yes goto cleanup goto :eof :cleanup