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
All you need to do is simply echo out the line with ALT-10 characters and then redirect it to con and it will work!
batch-file Echo @Echo off @echo off prevents the prompt and contents of the batch file from being displayed, so that only the output is visible. The @ makes the output of the echo off command hidden as well.
Use double percent signs ( %% ) to carry out the for command within a batch file. Variables are case sensitive, and they must be represented with an alphabetical value such as %a, %b, or %c. ( <set> ) Required. Specifies one or more files, directories, or text strings, or a range of values on which to run the command.
When used in a command line, script, or batch file, %1 is used to represent a variable or matched string. For example, in a Microsoft batch file, %1 can print what is entered after the batch file name.
Use:
echo hello echo: echo world
echo hello & echo.world
This means you could define & echo.
as a constant for a newline \n
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With