views:

235

answers:

1

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?

+4  A: 

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)

davitof