Gee, Can I add my two cents? Am I too late?

First off, you're not piping, you're redirecting.
Instead of dir /w perhaps dir /b would be the better option. Don't know what you want to do with the output, but maybe piping would be the way to go. Take another look at Shawn's Pipe() UDF.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.