Home > OS >  How can I ignore a line in a batch file that uses carets for line continuation?
How can I ignore a line in a batch file that uses carets for line continuation?

Time:04-25

Take this example that uses carets for line continuation:

echo ^
aaa ^
bbb ^
ccc ^
ddd

How can I effectively "comment out" the bbb line so that it is ignored when running the batch file?

CodePudding user response:

@ECHO OFF
SETLOCAL

SET "bbb=bbb"

echo ^
aaa ^
           
  • Related