Windows Command Prompt: How to pass multi-line string parameters
Your question is duplicate to - Windows: How to specify multiline command on command prompt?
In the Windows Command Prompt the ^ is used to escape the next character on the command line.
For example, (the More? being a prompt):
C:\>cd "c:\Program Files" ^
More? "\Common Files"
C:\>MyProgram "This is a " ^
More? "multiline text" parameter2
This routine will write multiple lines to text file ASM.txt in the drive and directory of F:\Backup_Info
. Note that it will give a line space using the space then ^
symbol as shown, a line space is required between each statement:
(echo To Do is to Understand^
Who Dares Wins^
^
Baz) > F:\Backup_Info\ASM.txt