windows - How to get list of directories except some directories -
i need list of directories , exclude directories name.
i linux may this:
ls -d */ | egrep -v '^common/$|^static/$|^static_src/$|^templates/$
how in windows cmd?
dir /ad /b | findstr /v /x /c:"common" /c:"static" /c:"static_src" /c:"templates"
or, if folder names don't contain spaces,
dir /ad /b | findstr /v /x "common static static_src templates"
Comments
Post a Comment