bat脚本

1.强制删除

DEL /F /A /Q \?\%1
RD /S /Q \?\%1

2.批量删除vc及vs临时文件

@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

3.打包qt

set install_path=%~dp0
cd /d %install_path%
windeployqt.exe --plugindir plugins . .

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