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 ...