Copy save to any file name. bat, placed in the Visual Studio solution directory.
When the Visual Studio Solution directory is too large or you intend to copy the mobile Visual Studio solution, double-click the open BAT file.
This bat file only removes temporary cache files that are automatically created every time that Visual Studio runs and does not delete the source files, so use it with confidence.
1 ::do not modify this file easily to avoid unpredictable errors by [email protected]2 3 @echo off4 Color 0A5 Title Clean Visual Studio Solution temporary File Build201604186 7 if not exist*.SLN1 (Color 0C &EchoThe current directory does not exist for Visual Studio solutions ... & ping 0/n 3 >nul 2>nul &Exit)8 9 EchoClean Visual Studio Solution temp File ... &Echo. &EchoPress any key to continue ... &Pause>nulTen One attrib-a-r-s-h * * >nul 2>nul A for/d%%i in (*) Do(attrib-a-r-s-h%%i\*.* >nul 2>nul) - - del/s/q/F *.sdf >nul 2>nul the del/s/q/F *.opendb >nul 2>nul - del/s/q/F *.suo >nul 2>nul - del/s/q/F *.aps >nul 2>nul - del/s/q/F *.exe >nul 2>nul + del/s/q/F *.ilk >nul 2>nul - del/s/q/F *.pdb >nul 2>nul + del/s/q/F *.iobj >nul 2>nul A del/s/q/F *.ipdb >nul 2>nul at del/s/q/F *.log >nul 2>nul - del/s/q/F *.obj >nul 2>nul - del/s/q/F *.pch >nul 2>nul - del/s/q/F *.res >nul 2>nul - del/s/q/F *.idb >nul 2>nul - del/s/q/F *.lastbuildstate >nul 2>nul in del/s/q/F *.tlog >nul 2>nul - to Rd/s/q. VS >nul 2>nul + Rd/s/qDebug>nul 2>nul - Rd/s/q Release >nul 2>nul the Rd/s/q ipch >nul 2>nul * Rd/s/q x64 >nul 2>nul $ Panax Notoginseng for/d%%i in (*) Do( - Rd/s/q%%i\Debug>nul 2>nul the Rd/s/q%%i\release >nul 2>nul + Rd/s/q%%i\x64 >nul 2>nul A) the + CLS&EchoCleanup Complete ... & ping 0/n 2 >nul 2>nul
View Code
Cleanup Visual Studio Solution temp file: Clean Visual Studio Solution temporary files Build20160418