2009-08-20 15:53:17 +00:00
|
|
|
:: clean_msvc.cmd
|
|
|
|
::
|
2009-10-05 20:20:54 +00:00
|
|
|
:: This batch file cleans up some files that MSVC's Clean/Rebuild commands tend to miss. In
|
|
|
|
:: particular the .ilk and .pdb files are known to get corrupted and cause all sorts of odd linker
|
|
|
|
:: linker errors, and the .ncb files can also get corrupted and cause intellisense breakges.
|
2009-08-20 15:53:17 +00:00
|
|
|
::
|
2009-10-05 20:20:54 +00:00
|
|
|
:: Safety: This tool should be pretty safe. It uses the command path to perform the deletion,
|
|
|
|
:: instead of relying on the CWD (which can sometimes fail to be set when working with UNCs across
|
|
|
|
:: network shares). Furthermore, none of the files it deletes are important. That is, they're
|
|
|
|
:: all files MSVC just rebuilds automatically next time you run/recompile. The one minor
|
|
|
|
:: exception is *.pdb, since windows and a lot of developer tools include PDB sets to assist in
|
|
|
|
:: application debugging (however these files are by no means required by any software).
|
2009-07-23 13:52:27 +00:00
|
|
|
|
2009-10-05 20:20:54 +00:00
|
|
|
del /s "%~dp0\*.ncb"
|
2009-10-20 19:25:14 +00:00
|
|
|
del /s "%~dp0\bin\*.ilk"
|
2009-10-05 20:20:54 +00:00
|
|
|
del /s "%~dp0\*.idb"
|
|
|
|
del /s "%~dp0\*.bsc"
|
|
|
|
del /s "%~dp0\*.sbr"
|
|
|
|
del /s "%~dp0\*.pch"
|
|
|
|
del /s "%~dp0\*.pdb"
|