How can I echo a newline in a batch file?

Brian R. Bondy picture Brian R. Bondy · Sep 25, 2008 · Viewed 1M times · Source

How can you you insert a newline from your batch file output?

I want to do something like:

echo hello\nworld

Which would output:

hello
world

Answer

Matt Lacey picture Matt Lacey · Sep 25, 2008

Use:

echo hello
echo.
echo world