Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Long commands split over multiple lines in Windows with quotes

Using the caret to split lines,

dir ^
*.bat ^
/w

works as expected, but

dir ^
"*.bat" ^

won't let me enter the "/w". I guess the caret does not work after a double quote. Is this a bug? Or if this is a feature, what is it's use and how can I get around it?

like image 886
davitof Avatar asked Nov 19 '25 09:11

davitof


1 Answers

I found the answer myself:

dir ^
 ^"*.bat^" ^ 
 /w

works as I want. In the second line there must be spaces before the first caret and after the last. (using Vista SP2)

like image 81
davitof Avatar answered Nov 22 '25 00:11

davitof



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!