Page 1 of 1

meaning of DOS command

Posted: Tue Feb 04, 2014 11:27 am
by suja.somu
Can anyone explain me the what the below DOS subroutine does?


In Before Job subroutine : EXECDOS

for %I in (D:\APPDATA\VAS\IN\tmcad.txt) do if %~zI==0 (exit 1) else exit 0

Posted: Tue Feb 04, 2014 1:53 pm
by chulett
It checks the file's size and fails the batch if the size is zero.