Line break in windows command prompt [duplicate]
Is it possible to have mutliple lines in command line (CMD)? Something like
"C:\Program Files\WinRAR\WinRAR.exe" a
aaa.txt.hpp,
bbb.txt,
ccc.txt
instead of
"C:\Program Files\WinRAR\WinRAR.exe" a aaa.txt.hpp, bbb.txt, ccc.txt
Is it possible to have multiple lines in command line?
Yes, you can do this by escaping the EOL character, like so:
"C:\Program Files\WinRAR\WinRAR.exe" a ^
aaa.txt.hpp, ^
bbb.txt, ^
ccc.txt
where ^
is the escape character.
Further Reading
- An A-Z Index of the Windows CMD command line
- A categorized list of Windows CMD commands
- syntax - Escape Characters, Delimiters and Quotes.