Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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