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

 

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

清理Visual Studio中VC++工程里不需要的文件
@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
清理Visual Studio中VC++工程里不需要的文件

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

上一篇:(转)C/C++中结构体(struct)知识点强化


下一篇:大赛获奖选手专访 | 冷燕冰:最佳设计奖TIMING里的时机和时序