Created
November 6, 2014 06:29
-
-
Save orangle/05780a85e4628feb0e9f to your computer and use it in GitHub Desktop.
删除项目的svn文件,递归删除(目录删除)| python项目编译成.pyc文件之后,把项目中的.py删除(递归删除文件)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo on | |
color 2f | |
mode con: cols=80 lines=25 | |
@REM | |
@echo start to clean all .py files in current directory and children directories | |
@rem for /r . %%a in (.) do @if exist "%%a\*.py" @echo "%%a\*.py" | |
@for /r . %%a in (.) do @if exist "%%a\*.py" del /a /f /s "%%a\*.py" | |
@echo 清理完毕! | |
@pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo on | |
color 2f | |
mode con: cols=80 lines=25 | |
@REM | |
@echo 正在清理SVN文件,请稍候...... | |
@rem 循环删除当前目录及子目录下所有的SVN(删除目录) | |
@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 清理完毕!!! | |
@pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment