SVN and CVS are the most common project versioning tools we use, which brings great convenience to our work. However, sometimes we need to delete the SVN and CVS folders inside.
1 How to quickly delete version control folders in a project
(1) Delete the SVN folder in the project. We can use the bat script to implement fast recursive deletion with the following code:
@echo Offecho Deleting SVN folders and files under:%1rem Open Folder specified by parameter.cd%1rem Recursive Delete com mandfor/f "tokens=*"%%i in (' dir/b/a/s svn* ') do @rmdir/Q/S "%%i" Echo done!
(2) Delete the CVS folder in the project. We can use the bat script to implement fast recursive deletion with the following code:
@echo Offecho Deleting CVS folders and files under:%1rem Open Folder specified by parameter.cd%1rem Recursive Delete com mandfor/f "tokens=*"%%i in (' dir/b/a/s cvs* ') do @rmdir/Q/S "%%i" Echo done!
2 How to remove the SVN icon on the project folder and file
Although we deleted the SVN folder inside the project file, the SVN folder also appeared on the project file and looked "awkward". How do we get rid of it? Execute the following code:
@echo on Color 2f mode con:cols=80 lines=25 @REM @echo Cleaning up svn files, please wait ... @rem loop delete all svn files in the current directory and subdirectories @rem fo R/r. %%a in (.) does @if exist "%%A\.SVN" @echo "%%A\.SVN" @for/R. %%a in (.) do @if exist "%%A\.SVN" rd/s/q "%%A\.SVN" @echo cleaned up!!! @pause
This article is from the "write-free" blog, please be sure to keep this source http://7156680.blog.51cto.com/7146680/1887751
How to remove the SVN and CVS folders inside the project