有时候我们想要交付或移动CAA代码工程时,会发现里面存在很多编译产生的垃圾文件,这里提供一份批处理代码,放到CAA所在的工程目录下(WorkSpace目录),使用时运行一下即可清理掉工程文件,剩下的都是代码。
for /f "delims=" %%i in ('dir /s/b/ad ToolsData') do (
rd /s/q "%%~i"
)
for /f "delims=" %%i in ('dir /s/b/ad ImportedInterfaces') do (
rd /s/q "%%~i"
)
for /f "delims=" %%i in ('dir /s/b/ad various') do (
rd /s/q "%%~i"
)
for /f "delims=" %%i in ('dir /s/b/ad Objects') do (
rd /s/q "%%~i"
)
for /f "delims=" %%i in ('dir /s/b/ad LocalGenerated') do (
rd /s/q "%%~i"
)
for /f "delims=" %%i in ('dir /s/b/ad win_b64') do (
rd /s/q "%%~i"
)
del *.obj /s /q
del *.sbr /s /q
del *.bsc /s /q
del *.aps /s /q
del *.ncb /s /q
del *.opt /s /q
del *.plg /s /q
del *.idb /s /q
del *.pch /s /q
del *.pdb /s /q
del *.ilk /s /q
del *.exp /s /q
del *.res /s /q
del *.tlog /s /q
del *.sdf /s /q
del *.ipch /s /q
del .installation.mode /s /q
del Install_config_win_b64 /s /q
del CATIAV5Level.lvl /s /q