How to remove the SVN and CVS folders inside the project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.