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