IF ELSE and Comments

Aug 1, 2019
5
0
@IF "A" EQU "A" (
@ECHO True
) ELSE (
@CD .
)

in CMD it's allowed to mark a commandblock () with @ to disable output (ECHO OFF) of a whole block, like
@IF "A" EQU "A" (
ECHO True
) ELSE @(
CD .
)

In practice, i disable any possible output and enable areas where i must debug
 
May 20, 2008
12,169
133
Syracuse, NY, USA
Depending on the number of @s, it might be more efficient to use "echo off" and "echo on" .. yes/no?
 
Aug 1, 2019
5
0
It's a 200 KByte file and selective activating was an helpfull function
and by the way it's an incompatibility ;-)