Windows DIR listing switch to exclude files in hidden folders
Posted
by
Jason
on Server Fault
See other posts from Server Fault
or by Jason
Published on 2011-03-08T15:54:01Z
Indexed on
2011/03/08
16:11 UTC
Read the original article
Hit count: 204
I'm trying to get a list of files from a directory excluding files in hidden folders. With the following command, hidden folders are traversed even though I've set /A:-H to exclude hidden directories. Is there a different switch to stop them from being traversed too?
dir "C:\SVN" /A:-H /w /b /s
Alternatively, for this use case I know the name of the hidden folders I want to exclude, so if there is a way to exclude the folders by name ("\.svn\")
that might have to suffice.
Thanks!
© Server Fault or respective owner