how do we extend a command to next line?
basically whats the windows alternative for linux's
ls -l \
/usr/
here we use backslash to extend command on next line
whats the equivalent for windows?
how do we extend a command to next line?
basically whats the windows alternative for linux's
ls -l \
/usr/
here we use backslash to extend command on next line
whats the equivalent for windows?
After trying almost every key on my keyboard:
So it seems to be the ^ key.
In the Windows Command Prompt the
^
is used to escape the next character on the command line. (Like\
is used in strings.) Characters that need to be used in the command line as they are should have a ^ prefixed to them, hence that's why it works for the newline.For reference the characters that need escaping (if specified as command arguments and not within quotes) are:
&|()
So the equivalent of your linux example would be (the More? being a prompt):
The caret character works, however the next line should not start with double quotes. e.g. this will not work:
Start next line without double quotes (not a valid example, just to illustrate)