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
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.txt

where ^ is the escape character.


Further Reading

4

You Might Also Like