批量删除VS临时文件.bat
@echo off echo ---------------------------------------------------- echo By Kaidy echo Press any key to delete all files with ending: echo *.aps *.idb *.ncp *.obj *.pch *.tmp *.sbr echo *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt echo *.suo *.manifest *.dep echo There are Visual C++ and Visual Studio junk echo echo 批处理中del命令的用法: echo 主要用到三个参数---/F ,/S和/Q: echo /F 保证只读的文件也会被删除。强制删除所有属性的文件。 echo /S 将进入子目录中进行删除,这样可以批量删除很多工程的临时文件。 echo /Q 安静模式,删除文件不需要手动确定。 echo ---------------------------------------------------- ::暂停可有可无 ::pause ::删除指定的文件夹 rd /s /q ipch rd /s /q Pdb rd /s /q .vs ::删除指定的文件 del /F /S /Q *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep *.ipch *.suo *.vcxproj.user *.VC.db *.tlog *.iobj *.ipdb *.lastbuildstate *.exp *.shm ::暂停可有可无 ::pause
---
参考文献
https://www.cnblogs.com/dasusu/p/9058554.html