Clear bat script sharing of svn files
This article mainly introduces "clearing the bat script sharing of svn files". In the daily operation, I believe that many people have doubts about clearing the bat script sharing of svn files. The editor has consulted all kinds of information and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "clearing the bat script sharing of svn files". Next, please follow the editor to study!
First: more straightforward code, loop delete all SVN files in the current directory and subdirectories
The code is as follows:
@ echo on
Color 2f
Mode con: cols=80 lines=25
@ REM
Please wait while @ echo cleans up the SVN file.
The @ rem loop deletes all SVN files in the current directory and subdirectories
@ rem for / r. % an in (.) Do @ if exist "a\ .svn" @ echo "a\ .svn"
@ for / r. % an in (.) Do @ if exist "a\ .svn" rd / s / Q "a\ .svn"
@ echo cleaned up!
@ pause
Second: not as concise as the above
The code is 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 then add wildcards to the deleted path.
At this point, the study on "clearing the bat script sharing of svn files" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!