Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We have this "Continuing Lines" in Linux, with '\'
#inside of a bash file 
command <options> <args> \
    <options> <args> \
    <options> <args> \
    ...
what about the Windows own implementation?

What I have tried:

inside of .bat file, I tried this character '^'
command <options> <args> ^
    <options> <args> ^
    <options> <args> ^
    ...
Posted
Updated 22-May-22 3:51am
v2

1 solution

It's the "^" character, but it must be the last character on the line: it can't be followed by a space or anything else.
Try it:
WINKEY+R, "cmd" ENTER
"cd^"
It will respond "More?"
"\" ENTER

The current directory will chance to root.

Yes, it works in .BAT files as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900