Cleanup Visual Studio Solution temp file: Clean Visual Studio Solution temporary files Build20160418

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.