- May
- 13,450
- 193
This is from the LE forum but it is equally appropriate here.
Here are two simple batch files.
Here's the result of conditional execution with CMD.
And here's the result with TCC19.
Here are two simple batch files.
Code:
v:\> type chain1.cmd
@echo off
if "%1"=="1" (cmd /c exit 1) else (echo foo)
v:\> type chain2.cmd
@echo off
echo chain2.cmd was executed
Here's the result of conditional execution with CMD.
Code:
V:\> chain1.cmd 1 && chain2.cmd
V:\>
And here's the result with TCC19.
Code:
v:\> chain1.cmd 1 && chain2.cmd
chain2.cmd was executed
v:\>