Clear the SVN file's BAT script collation _dos/bat

Source: Internet
Author: User
Tags goto svn svn update
First: more direct code, loop delete the current directory and subdirectories under all the SVN files
Copy Code code as follows:

@echo on
Color 2f
Mode con:cols=80 lines=25
@REM
Please wait while @echo cleanup the svn file ...
@rem loop deletes all SVN files under the current directory and subdirectories
@rem for/r. %%a in (.) do @if exist "%%A\.SVN" @echo "%%A\.SVN"
@for/R. %%a in (.) do @if exist "%%A\.SVN" rd/s/q "%%A\.SVN"
@echo clean up,!!!.
@pause

The second one: not as simple as above
Copy Code code as follows:

@echo off
D:
CD D:/wwwroot/tws/estore/estore
: BEGIN
choice/c yn/m "Run svn update"
IF errorlevel ==2 GOTO RUNANT
IF errorlevel ==1 GOTO svnup
GOTO BEGIN
: Svnup
echo SVN updating ...
SVN update
Echo SVN update completed
GOTO RUNANT
: RUNANT
CHOICE/C yn/m "Run Ant"
IF errorlevel ==2 GOTO End
IF errorlevel ==1 GOTO One
GOTO End
: one
ECHO Run Ant ...
Ant
GOTO End
: End
echo bye ...
Pause

RMDIR/S/q and add wildcard characters to the deleted path ...

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.