清理Visual Studio中VC++工程里不需要的文件

 

Visual Studio开发C++,工程的空间几M,几十M甚至几百M的长,生成的中间文件看的眼花缭乱,占空间不说,特别是备份拷贝代码时无奈的等待,有了这个脚本,好吧,整个世界清静了。

@echo off
echo ----------------------------------------------------------------
echo *                      Visual C++                              *
echo *          清理Visual Studio工程中不需要的文件                    *
echo *          保存成.bat文件放置在工程目录中                          *
echo *          执行前先关闭打开该工程的Visual Studio                  *
echo *          会清理以下格式文件:                                   *
echo *          *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp           *
echo *          *.pdb *.bsc *.ilk *.res *.ncb *.opt *.suo           *
echo *          *.manifest *.dep *.sdf *.tlog *.log *.ipch          *
echo *          *.lastbuildstate                                    *
echo *          Author:Dageking                                     *
echo *          Blog:www.cnblogs.com/Dageking                       *
echo ----------------------------------------------------------------
pause

del /F /Q /S *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc *.ilk *.res 
del /F /Q /S *.ncb *.opt *.suo *.manifest *.dep *.sdf *.tlog *.log *.ipch *.lastbuildstate

echo 文件清理完毕!!!
pause

 

 

posted @ 2014-01-15 21:54  DageKing  阅读(1409)  评论(1编辑  收藏  举报