Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there a way to extend a command line command on to multiple lines in windows?

Of course, one can simply keep typing, and wrap around, what I'm wondering is if there is a character that you could put at the end of the line that would be a signal that the command is not yet complete. This could be helpful in formatting a large command, and I've seen this in other command line environments.

share|improve this question
windows cmd is multiline – subanki Sep 11 '10 at 14:16
Edited my question for clarity – Eric Wilson Sep 11 '10 at 14:27
up vote 8 down vote accepted

You can use the carat ^ to extend to the next line. For instance:

program files\^

Will get parsed as:

cd\program files\foo_directory

share|improve this answer
Can this be used for batch files? – Isxek Sep 11 '10 at 14:33
@Isxek Yes ......................... – subanki Sep 11 '10 at 14:36
@subanki - Thanks :) – Isxek Sep 11 '10 at 14:38

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.