I don't understand why you don't want C:\\c and c:\\car in your result list.
Actually I have a list of directories with property X. I need to filter out all instances of nested X-ness. ie any directory with property X must not appear under another directory with property X. In such a case I have to remove the property from the inner directory. It's an application thing. :)