Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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 \
   --full-time

Is this possible in DOS?

thanks

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 ^
     world
share|improve this answer
    
Yes I meant CMD shell. Superb! thanks. –  cherouvim Sep 22 '10 at 11:39

Your Answer

 
discard

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.