title: How to skip .svn directories and included files in Windows cmd script?
body: <p>I am currently renaming my Subversion files on a Windows PC in order to solve Umlaut conflicts which cause Subversion on macOS to use another visualization of Umlauts.</p>
  
  <p>But - my current .cmd script doesn't skip the .svn directory and files which makes the script rather slow as the .svn directory contains very many files. I already tried and set the .svn directory attributes to Hidden and System, but the script seems to ignore this although I use the dir command with /A:-H and /A:-S. What am I doing wrong?</p>
  
  <pre><code>@echo off 
  setlocal enabledelayedexpansion
  chcp 1252
  
  for /f "delims=" %%i in ('dir /s /b /a-d-h /A:-H /A:-S C:\Users\Me\Desktop\MyRepository\*.*') do ( 
    set string=%%~nxi
    set stringnew=%%~nxi
  
    set stringnew=!stringnew:ä=ae!
    set stringnew=!stringnew:ö=oe!
    set stringnew=!stringnew:ü=ue!
    set stringnew=!stringnew:Ä=Ae!
    set stringnew=!stringnew:Ö=Oe!
    set stringnew=!stringnew:Ü=Ue!
    set stringnew=!stringnew:ß=ss!
  
    if !string! NEQ !stringnew! (
      echo %%~fi
      rename "%%~fi" "!stringnew!"
    ) 
  )
  </code></pre>
  
  <p>Thank you in advance.</p>