Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In linux I can use newlines in commands using the backslash in order to improve readability in shell scripts etc:

ls -l \
   --reverse \
   --human-readable \

Is this possible in DOS?


share|improve this question

1 Answer 1

up vote 7 down vote accepted

When you say "DOS" I assume you mean Windows CMD shell. You can use the caret as a line continuation character.

ECHO hello ^
share|improve this answer
Yes I meant CMD shell. Superb! thanks. – cherouvim Sep 22 '10 at 11:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.