@echo off REM "checksize.cmd" Written by David Cain 21-08-2015 REM Tests size of Electronic Directory database to avoid sending empty file 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