Batch processing-batch delete svn flag

Source: Internet
Author: User
First taste of batch processing & mdash; batch delete svn mark this program is used to delete the subdirectory named. svn under the specified directory of the loop, that is, delete svn information. Copy the above code to the wendows text file, modify cleanSvn. bat, and place it in the svn project Java code www.2cto.com @ echo...
First taste batch processing-batch delete svn mark this program is used to delete the subdirectory named. svn under the specified directory in the loop, that is, delete svn information. You can copy the above code to the wendows text file and modify cleanSvn. bat, put the Java code www.2cto.com @ echo off: start: startup process under the svn project. switch the directory set pwd = % cd % 1 echo to the following Directory: & chdir: input: get the input. process it according to the input. set source =: set/p source = Are you sure you want to know the svn information in the current directory? [Y/N/Q] set "source = % source: "= %" if "% source %" = "y" goto clean if "% source %" = "Y" goto clean if "% source %" = "n "goto noclean if" % source % "=" N "goto noclean if" % source % "=" q "goto end if" % source % "=" Q" goto end goto input www.2cto.com: clean: in the main processing process, execute cleanup @ echo on @ for/d/r % c in (. svn) do @ if exist % c (rd/s/q % c & echo delete directory % c) @ echo off echo "svn information in the current directory has been cleared" goto end: noclean: Branch process, cancel cleanup echo "svn clear operation canceled" goto end:: Exit program cd "% pwd %" pause
Related Article

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.