FOR /R exclude ".svn" directory
Posted: 20 Feb 2009 09:56
How do I recursively get a list of sub-directories but exclude ".svn" directory in the list?
Code: Select all
FOR /R %d IN (*) DO @echo %d
A Forum all about DOS Batch
https://www.dostips.com/forum/
Code: Select all
FOR /R %d IN (*) DO @echo %d
Code: Select all
Dir * /aD/b/s | Find /V ".SVN" > %Temp%\NewList
For /F "Delims=" %%F In (%Temp%\NewList) Do (
Echo File Name is : %%~nxF
)
Code: Select all
For /F "Delims=" %%A In ('"Dir * /aD/b/s|Find /V ".SVN" "') Do (
Echo Directory Name is : %%A
)