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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -