Search notes:
cmd.exe: line continuation
A long command can be spread out over multiple lines if each line's last character is the caret (
^
) character.
The following
echo
command prints the entire text on
one single line
:
echo ^ Hello world, ^ the number is ^ 42.
Github repository
about-cmd.exe
, path:
/lineContinuation.bat
See also
The
role of the caret
in
command line parsing
.
The caret might be used when
executing a PowerShell script in a cmd.exe batch file
cmd.exe
The line continuation character of
Visual Basic for Application
is the
underscore (
_
)
Index