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.txtinstead of
"C:\Program Files\WinRAR\WinRAR.exe" a aaa.txt.hpp, bbb.txt, ccc.txt 2 1 Answer
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.txtwhere ^ 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.