批量清理垃圾文件

@echo off
echo ----------------------------------------------------
echo By MoreWindows (http://blog.csdn.net/MoreWindows)
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 moc_*.cpp *.ipch
echo *.lastbuildstate *.user ui_*.h BuildLog.htm
echo There are Visual C++ and Visual Studio junk
echo ----------------------------------------------------
pause
del /F /S /Q *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep moc_*.cpp *.ipch *.lastbuildstate *.user *.filters ui_*.h BuildLog.htm
pause

复制以上文字保存在txt文本中,修改后缀为.bat

不为其他,只为快乐!
原文地址:https://www.cnblogs.com/1521299249study/p/11060136.html