1------------ Testing FOR loop ------------ 2--- Multiple lines 3A 4B 5C 6--- Lines and spaces 7D 8E 9F 10--- Multiple lines and commas 11G 12H 13I 14--- Multiple lines and %I 15%I 16%I 17%I 18--- Multiple lines and %j 19%j 20%j 21%j 22---------- Testing AND operator ---------- 23TRUE AND condition 24---------- Testing OR operator ----------- 25FALSE OR condition 26---------- Testing CMD exit codes and errorlevels ---------- 27--- CMD /C Direct EXIT call 28OK 29OK 30--- CMD /C Direct EXIT /B call 31OK 32OK 33--- CMD /C Non-existing command 34OK 35OK 36OK 37OK 38--- CMD /C RMDIR (no ERRORLEVEL set) 39OK 40OK 41OK 42OK 43--- CMD /C DIR (sets ERRORLEVEL) - With failure 44OK 45OK 46OK 47OK 48OK 49OK 50OK 51OK 52--- CMD /C DIR (sets ERRORLEVEL) - With success 53OK 54OK 55OK 56OK 57OK 58OK 59--- CALL Batch Non-existing command 60OK 61OK 62--- CALL Batch RMDIR (no ERRORLEVEL set) 63OK 64OK 65--- CALL Batch RMDIR with || (sets ERRORLEVEL) 66OK 67OK 68OK 69OK 70--- CALL Batch DIR (sets ERRORLEVEL) - With failure 71OK 72OK 73OK 74OK 75OK 76OK 77OK 78OK 79--- CALL Batch DIR (sets ERRORLEVEL) - With success 80OK 81OK 82OK 83OK 84OK 85OK 86OK 87OK 88--------- Finished -------------- 89