清理冗余文件的批处理脚本
Posted in: 脚本 | 九月 8th, 2009
在一个网站项目在本地做好经过测试准备上传到服务器时经常需要删除一些模版缓存文件和DW生成的_notes文件夹,于是写了如下脚本进行批量处理,tpl_c为Smarty模版缓存目录,保存为clear.bat即可
@echo off for /D /R %%F in (tpl_c) do if exist %%F del /f /s /q %%F\*.* for /D /R %%F in (_notes) do if exist %%F rmdir /s /q %%F
清除 tpl_c 目录下的所有文件,以及删除整个 _notes 目录,请根据需要进行修改
