Bulk renaming _svn folders to .svn
A long time ago I set TortoiseSVN to use _svn for the folder name instead of .svn because I had heard somewhere that .svn caused conflicts with Visual Studio or IIS (I can’t recall the exact details). While setting up my new computer, I didn’t want to apply this setting again because it’s not the default and there’s no conflict with recent versions of Visual Studio. After a short search, I found the following batch file which I modified slightly for my situation.
WARNING: Use at your own risk – Works on my machine™
FOR /R %%f IN (_svn) DO IF EXIST "%%f" (
ATTRIB -h "%%f"
RENAME "%%f" .svn
ATTRIB +h "%%f"
)
Copy this into a new text file, save the file, and rename it to updatesvn.bat. Then, place this file in the folder that you want to update it and double click to run. It will update the folder it’s in and all subfolders.
The batch file looks for folders named _svn, removes the ‘Hidden’ attribute, renames the folder to .svn and adds the ‘Hidden’ attribute back.




