Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 8 down vote accepted

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

cd\^
program files\^
foo_directory

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

 
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.