@REM #########################################################
@REM Name: 递归删除指定的目录,请把此文件放在你希望执行的那个目录
@REM Desciption:
@REM Author: amosryan
@REM Date: 2010-11-01
@REM Version: 1.0
@REM Copyright: Up to you.
@REM #########################################################
@echo on
setlocal enabledelayedexpansion
@REM 设置你想删除的目录
set WHAT_SHOULD_BE_DELETED=.svn
for /r . %%a in (!WHAT_SHOULD_BE_DELETED!) do (
if exist %%a (
echo "删除"%%a
rd /s /q "%%a"
)
)
pause
删除文件(*.bak)
1. 设置文件属性,可能是只读的
attrib -a -h -s -r *.bak /s
2. 删除
del *.bak /s
阅读(7380) | 评论(0) | 转发(0) |